JBoss Community

How to: LocalHTWorkItemHandler Spring Integration?

created by Vijay U in jBPM Development - View the full discussion

I am trying to register LocalHTWorkItemHandler for "Human Task" using spring integration (in jBPM5.4). My spring configuration looks like this:

 

 

 <jbpm:ksession id="ksession" type="stateful" kbase="kbase" ><jbpm:configuration><jbpm:work-item-handlers><jbpm:work-item-handler name="Human Task" ref="humanTaskWorkItemHandler"/></jbpm:work-item-handlers></jbpm:configuration></jbpm:ksession>
<bean id="humanTaskWorkItemHandler" class="org.jbpm.process.workitem.wsht.LocalHTWorkItemHandler"><constructor-arg ref="ksession"></constructor-arg></bean>

 

 

Obviously, this won't work due to the circular dependency of ksession and humanTaskWorkItemHandler.

 

How to register such WorkItem handler's (using Spring Integration) that need ksession as consturction arg?

 

Thanks,

Vijay

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community