This content has been marked as final.
Show 1 reply
-
1. Re: Process Variables in Process Definition
vsuarez Mar 24, 2006 4:51 AM (in response to romin.irani)We are using something like this:
<process-definition name="your_definition"> <start-state name="start"> <event type="node-leave"> <action name="init_vars" class="your_package.YourVaribleAssigmentHandler" config-type="configuration-property"> <variables> <variable name="var1">value1</variable> <variable name="var2">value2</variable> ... </variables> </action> </event> <transition name="tr" to="next_state"></transition> </start-state> ...
"configuration-property" usage is due to we are using jdom instead of dom4j. After signalling the process instance, you haven't to "pi.getContextInstance().addVariables()", they already are into the process.