I am new to jBPM and for two days I have been looking and running examples but I can not find a solution to my simple problem.
I want to pass parameters to my Actions. I want to do something like this
<process-definition> <start-state name="start"> <transition to="s" /> </start-state> <state name="s"> <event type="node-enter"> <action class="com.MyHandler"> <parameter name="para1" value="1" /> <parameter name="para2" value="2" /> </action> </event> <transition to="end" /> </state> <end-state name="end" /> </process-definition>
Did you read the documentation? http://docs.jboss.com/jbpm/v3/userguide/jpdl.html#configurationofdelegations