Hello again!
From the documentation about java activities:
| <process name="Java"
xmlns="http://jbpm.org/4.0/jpdl">
|
| <start >
| <transition to="greet" />
| </start>
|
| <java name="greet"
| class="org.jbpm.examples.java.JohnDoe"
| method="hello"
| var="answer"
| >
|
| <field name="state"><string
value="fine"/></field>
| <arg><string value="Hi, how are you?"/></arg>
|
| <transition to="shake hand" />
| </java>
|
| <java name="shake hand"
| expr="#{hand}"
| method="shake"
| var="hand"
| >
|
| <arg><object
expr="#{joesmoe.handshakes.force}"/></arg>
| <arg><object
expr="#{joesmoe.handshakes.duration}"/></arg>
|
| <transition to="wait" />
| </java>
|
| <state name="wait" />
|
| </process>
|
anonymous wrote :
| For the java task you can pass arguments and use expressions for the value of the
arguments. These can afaik be process variable names as well, so that solves one problem.
The varying number of arguments is afaik dealt with by jBPM since it uses reflection to
find the correct method signature. Not 100% completely sure though.
|
How exactly can I address process instance variables to use them as arguments for method
calls?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262166#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...