I created a simple process definition in jBPM5 with just a single script task. I want to include a global variable, say count that is static in the sense that the same value is shared across the various process instances, however it is not a constant and each instance can update the value, say increment it in the first task of the process. From the script task I want to do this modification (increment) and print it to the stdout. How do I do this?
I created a simple process definition in jBPM5 with just a single script task.
Share
System.out.println(count);
kcontext.setVariable(“count”, count + 1);