cancel
Showing results for 
Search instead for 
Did you mean: 

Task local variables

pault
Star Contributor
Star Contributor
I noticed in the answer to another post mention of these coming in 5.1. It will be a very useful feature.

Is there any preliimnary javadoc, or other description of how it will be implemented.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Quick example:
Using API:

taskService.setVariableLocal("123", "myVariable", "Variable value");
Or inside a TaskListener, using DelegateTask

public void notify(DelegateTask delegateTask) {
  delegateTask.setVariableLocal("123", "myVariable", "Variable value");
}

Similar methods for a map of variables will be available, as well as API and DelegateTask methods for getting the variables. For the full javadoc and userguide, you'll have to wait for the 5.1 release, in the beginning of januari 2011 Smiley Wink