cancel
Showing results for 
Search instead for 
Did you mean: 

How to set process variables using Activiti handler or BPMN xml

sankardunga
Champ in-the-making
Champ in-the-making
Hi All,

I struck up with this problem.
Is it possible set process variables inside the work flow process ?

I have a Service Task where I'm generating some common ID for mapping workflow with my functionality to continue the process later.
I want set this common id in process variables, it can using bpmn xml or some other task from Activiti.
Scenario is like, want to set process variables using
                      runtimeService.setVariables(key, value);
So that I get exections IDs using
                      runtimeService.createExecutionQuery().processVariableValueEquals(key, value);

Please guide me to get out from this.

Regards
Sankar
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
one of the possibilities is described:
org.activiti.examples.bpmn.servicetask.MethodExpressionServiceTaskTest#testSetServiceResultToProcessVariables

(activiti jUnit test)

Regards
Martin