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

tolitius webakaunt at gmail.com
Tue Mar 30 16:45:58 EDT 2010


yes, I understand they are persisted, but once you reload a session, you have
no knowledge of _which_ Processs Instance to use, and _which_ Work Item is
the one that caused the flow to wait.

Therefore I am looking for the way to save a workitem ID as a variablea,
using a Variable Persistence mechanism.

This way when the session is reloaded, I can do
processInstance.getVariable("workItemId"), which will return me an ID of the
latest work item that caused this flow to wait.

so let me try this again.. having a workitem, what would be the best
approach to persist a WorkItemID using VariablePersistence?
-- 
View this message in context: http://n3.nabble.com/Drools-Flow-WORK-ITEM-ID-as-a-flow-variable-tp680939p686872.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list