[jboss-user] [jBPM] - How to add Human task Groups and Users in a spring configuration.

Miloud Haimoune do-not-reply at jboss.com
Thu Jul 19 06:52:36 EDT 2012


Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion

"How to add Human task Groups and Users in a spring configuration."

To view the discussion, visit: https://community.jboss.org/message/748997#748997

--------------------------------------------------------------
Hi all,

I m using jbpm 5.3 in a spring application, a part  of the config : 


........  
<bean id="taskService" class="org.jbpm.task.service.TaskService">
    <constructor-arg index="0" ref="htEMF"/>
    <constructor-arg index="1">
      <bean factory-method="getSystemEventListener" class="org.drools.SystemEventListenerFactory"/>
    </constructor-arg>
  </bean>

  <bean id="localTaskService" class="org.jbpm.task.service.local.LocalTaskService">
    <constructor-arg index="0" ref="taskService"/>
  </bean>

  <bean id="humanTaskHandler" class="org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler">
    <property name="client" ref="localTaskService"/>
  </bean>
..
<drools:ksession id="ksession2" type="stateful" kbase="kbase2" node="node1">
    <drools:configuration>
      <drools:work-item-handlers>      
        <drools:work-item-handler  name="Human Task" ref="humanTaskHandler"/>
      </drools:work-item-handlers>
      <drools:jpa-persistence>
        <drools:transaction-manager ref="jbpmTxManager"/>
        <drools:entity-manager-factory ref="jbpmEMF"/>
      </drools:jpa-persistence>
    </drools:configuration>
  </drools:ksession>


do any one know how to add the Users and Groups (taskSession.addUser( new User("Administrator")  );) etc ....

thnaks,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748997#748997]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120719/e5bc8fcb/attachment-0001.html 


More information about the jboss-user mailing list