[jboss-user] [jBPM] - Re: Accessing process variables in rule-task

Esteban Aliverti do-not-reply at jboss.com
Tue May 31 12:48:28 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/607972#607972

--------------------------------------------------------------
I'm not sure if I understood the question, but if what you need is to access process variables inside your rules, you can use something like this:


| rule A |  |
|  | ruleflow-group "ABC" |
|  | when |
|  |  | $process: WorkflowProcessInstance() |
|  | then  |
|  |  | Map variable = (Map)((WorkflowProcessInstance)kcontext.getKnowledgeRuntime().getProcessInstance($process.getId())).getVariable("variableName"); |
end
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/607972#607972]

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/20110531/e1d1eb86/attachment.html 


More information about the jboss-user mailing list