cancel
Showing results for 
Search instead for 
Did you mean: 

Service Task local variable

piyush_kaizen
Champ in-the-making
Champ in-the-making
Can Service Task have Task local variable like User Task ?
If so how can i create them ?
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

Yes you can use execution.setLocalVariable, but it won't be of much use in a service task.

Best regards,

Hi trademak,
Thanks But Won't it create a process local variable.
I want something which is stored against that Service Task only.
Like User Task Local Variable.

trademak
Star Contributor
Star Contributor
Hi,

It will create a local variable on the running execution instance, so that will be the same as for user tasks.

Best regards,

piyush_kaizen
Champ in-the-making
Champ in-the-making
Thanks,
But what if i use
taskService().setVariableLocal(taskId, variableName, value);
or
delegateTask.setVariableLocal(variableName, value)
then the variable will be created against that task .

I need something similar to that for service task also.
Is it possible ?