[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:

   $processInstance: WorkflowProcessInstance()
   String monkey = (String)$processInstance.getVariable("monkey"); //This will return "chimp" 


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- 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