JBoss Community

How to associate a custom WorkItemNodeHandler in a subprocess?

created by Connie Yang in jBPM - View the full discussion

Hi,

 

I have defined a parent workflow (using RuleFlowProcessFactory) that calls another process via subProcessNode in a for-each loop.  When I start the parent process, I register my WorkItemHandler with the WorkItemManager.

 

      ksession.getWorkItemManager().registerWorkItemHandler("myHandler",

                                                          new MyWorkItemHandler());

 

MyWorkItemHandler is called (as expected) in all the WorkItemNode in the parent flow.  But yet, MyWorkItemHandler is not called in any of the WorkItemNode(s) in the subprocess.

 

It seems to me that MyWorkItemHandler is not "global" in the parent and child processes.  Is there a way for me to make the subprocess "aware" of MyWorkItemHandler?

 

Thanks for the help!

Reply to this message by going to Community

Start a new discussion in jBPM at Community