We do not have a syntax for automatically substituting the value of a variable
while initializing an action handler field. You can, however, interpret the
literal from the process definition as a variable name and retrieve the
variable value from the execution context:
public class MyActionHandler implements ActionHandler {
|
| private String source;
|
| public void execute(ExecutionContext executionContext) {
| Object value = executionContext.getVariable(source);
| // ... do something with the variable value
| }
| }
Your process definition would specify the variable name rather than a specific
value:
<action class='MyActionHandler'>
| <source>pathToPatch</source>
| </action>
Regarding child processes, you can assign values from the variables of the
parent process to the variables of the child process, but not literal values.
In your scenario, you can pass the required values in variables and then use
the above technique to access these values from action handlers.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952200#3952200
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952200
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user