[rules-users] Drools Flow: WORK_ITEM_ID as a flow variable

tolitius webakaunt at gmail.com
Sat Mar 27 22:31:15 EDT 2010


Not using WS Human Task Handler, just a custom work item handler (since not
every long running process is a human task):

Is there a way to use a Variable Persistence mechanism, to automatically
persist an ID of the work item that causes a flow to suspend [ puts it in a
wait state ]? This way when the flow resumes all we have to do is
processInstance.getVariable("workItemId") to get exactly _that_ work item ID
that needs to be completed.

[ I understand this can be done manually from the a custom work item
handler, but then a different approach is used, different tables get
updated, artificial relationship between session / processInstance and
workItem needs to be manually established, etc..  + we would not be able to
do "processInstance.getVariable("workItemId")" ]

Thank you,
/Anatoly
-- 
View this message in context: http://n3.nabble.com/Drools-Flow-WORK-ITEM-ID-as-a-flow-variable-tp680939p680939.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list