[jboss-user] [jBPM] - Re: Accessing process variables in rule-task
Esteban Aliverti
do-not-reply at jboss.com
Wed Jun 1 07:23:33 EDT 2011
Esteban Aliverti [http://community.jboss.org/people/eaa] created the discussion
"Re: Accessing process variables in rule-task"
To view the discussion, visit: http://community.jboss.org/message/608092#608092
--------------------------------------------------------------
The LHS of your rule is wrong. I think you need to use an eval() if you want to invoke methods that contains parameters.
I also remembered another way to get process variables in the RHS, but I don't remember if it has some caevats:
when
$processInstance: WorkflowProcessInstance()
then
String monkey = (String)$processInstance.getVariable("monkey"); //This will return "chimp"
$processInstance.setVariable("character","nice");
end
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/608092#608092]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110601/30ce2d6f/attachment.html
More information about the jboss-user
mailing list