4 Replies Latest reply on May 26, 2011 3:47 PM by Connie Yang

    How to associate a custom WorkItemNodeHandler in a subprocess?

    Connie Yang Newbie

      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!