- Red Hat JBoss BRMS (BRMS)
- Red Hat JBoss BPM Suite (BPMS)
- While trying to update process variables through rules in
Rule Taskit is observed that the process variables are not getting accessible, since
WorkflowProcessInstanceobject is not available while rules are trying to fire. How to fix this issue?
- How to access
Process Variablesthrough rules written in
- In order to fire the rules to update the process variables from
Rule Task, please ensure to insert
Knowledge Runtime before the rule node is fired. One way to do this is to add a
Script Tasknode that executes the following:
- The attached test case
AccessProcessVariableInRule.zipis a simple demonstration which has been used around the new
jBPM6to execute a
BPMN2process definition to prove that the above functionality to access and update
Process Variablefrom within a rule works. Users from
BRMS 5.3.xcan take the help of the same process definition attached in the test case for reference purposes as it should work with the old
- Please ensure to insert
Knowledge Runtimebefore the rule node is fired.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.