Package org.jbpm.services.cdi.producer
Class HumanTaskServiceProducer
- java.lang.Object
-
- org.jbpm.services.cdi.producer.HumanTaskServiceProducer
-
public class HumanTaskServiceProducer extends Object
CDI producer forTaskServiceinstances. By default it runs in new mode, meaning newTaskServiceinstance for every injection point. This behavior can be altered by settingorg.jbpm.cdi.taskservice.modesystem property to one of the values.- none - disables producer to not return TaskService instances
- singleton - produces only one instance of TaskService that will be shared
- new - produces new instance for every injection point
- UserGroupCallback
- UserInfo
- TaskLifeCycleEventListener
HumanTaskConfiguratorforTaskServiceinstances creations.- See Also:
HumanTaskConfigurator
-
-
Constructor Summary
Constructors Constructor Description HumanTaskServiceProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureHumanTaskConfigurator(HumanTaskConfigurator configurator)protected HumanTaskConfiguratorcreateHumanTaskConfigurator()protected org.kie.api.runtime.EnvironmentgetEnvironment(javax.enterprise.inject.Instance<org.kie.internal.identity.IdentityProvider> identityProvider)CommandBasedTaskServiceproduceTaskService()protected <T> TsafeGet(javax.enterprise.inject.Instance<T> instance)
-
-
-
Method Detail
-
produceTaskService
@Produces public CommandBasedTaskService produceTaskService()
-
createHumanTaskConfigurator
protected HumanTaskConfigurator createHumanTaskConfigurator()
-
configureHumanTaskConfigurator
protected void configureHumanTaskConfigurator(HumanTaskConfigurator configurator)
-
getEnvironment
protected org.kie.api.runtime.Environment getEnvironment(javax.enterprise.inject.Instance<org.kie.internal.identity.IdentityProvider> identityProvider)
-
safeGet
protected <T> T safeGet(javax.enterprise.inject.Instance<T> instance)
-
-