I have a simple bpmn process
in which i am using 2 service task,I am executing my process by using
processEngine.getRuntimeService().startProcessInstanceByKey("Process_1", variables);
where my variables is as follows:
Map variables = new HashMap();
variables.put("a", 2);
variables.put("b", 5);
Service task 1 implements an Addition
java class and service task 2 implements a Multiplication
class.
Now I want to have 3 variables (constants) c = 5
, d = 10
, e = 2
so that I can use c
for service task 1 such that in Addition
I can use this variable, similarly I want to use d
in my Multiplication
class, and e
should be global so that I can use it in both classes.
Can anyone guide me on this?