The first task execution is ProcessInstanceExecution?

i want to set a local variable in the task , but i found the first task execution is ProcessInstanceExecution.

How can i get the scopeExecution ?

Hi @marun

To set a local variable, create an input as illustrated in the attached snip (var1). An initial value can be assigned.
You can easily set a value for this local variable from within your delegation logic by simply calling execution.setVariable("var1", <VALUE>);
This call will set the value for the variable named “var1” that exists in the narrower scope which will be the task’s scope in this example

Thank you for your reply.

However, I’m curious why the first task is ProcessInstanceExecution when I expected it to be ScopeExecution.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.