Class HumanTaskServiceProducer


  • public class HumanTaskServiceProducer
    extends Object
    CDI producer for TaskService instances. By default it runs in new mode, meaning new TaskService instance for every injection point. This behavior can be altered by setting org.jbpm.cdi.taskservice.mode system 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
    This bean accept following injections:
    • UserGroupCallback
    • UserInfo
    • TaskLifeCycleEventListener
    all of these are optional injections and if not available defaults will be used. Underneath it uses HumanTaskConfigurator for TaskService instances creations.
    See Also:
    HumanTaskConfigurator
    • Constructor Detail

      • HumanTaskServiceProducer

        public HumanTaskServiceProducer()
    • Method Detail

      • 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)