2 Replies Latest reply on Jul 9, 2013 5:15 AM by thomas.setiabudi

    How to use different implementation of UserGroupCallback for each Process?

    thomas.setiabudi

      Hi,

       

      in JBPM (currently I am using JBPM 5.4 Final ), is it possible to have different implementation of UserGroupCallback for every process definition?

       

      Sample case is I have two different process, say Process A and Process B

      Process A has its own user and group store and structure while Process B also has its own user and group store and structure.

       

      Is it possible to have different implementation of UserGroupCallback for each Process Definition?

       

      Currently this is my setup:

      1. I use JBPM 5.4 Final

      2. My JBPM jars and Human Task jars are bundled in one WebApp

      3. I use Spring to setup single StatefulKnowledgeSession that lives as long as the WebApp lives.

      4. I also setup a Local Task Service and set the UserGroupCallback implementation via Spring

       

      this is how my the UserGroupCallback registered in Spring

       

      <bean id="userGroupCallbackManager" class="org.jbpm.task.identity.UserGroupCallbackManager"
                          factory-method="getInstance">
                          <property name="callback" ref="chameleonUGC"></property>
                </bean>
      
      

       

      A brief chat with Salaboy (Mauricio Salatino) in IRC, he says that I can set multiple Knowledge Session for each process definition, but I still does not understand how to attach the UserGroupCallback for each session?

       

      Any Thoughts?

       

      any help is appreciated.

       

      Regards,

      Thomas Setiabudi