cancel
Showing results for 
Search instead for 
Did you mean: 

Get the current execution-id in current ScriptTask

mf
Confirmed Champ
Confirmed Champ
Hi,

I have a ScriptTask that i want delete a variable in it. but i have not the current execution-id. is it possible to get it? how?


//do something with variable: var
//find the current execution-id ???
ActivitiUtil.getRuntimeService().deleteVariable(executionId,var);


Thanks
1 ACCEPTED ANSWER

mf
Confirmed Champ
Confirmed Champ

We can access the DelegateExecution by execution keyword, so:
executionId = execution.getId();

View answer in original post

2 REPLIES 2

mf
Confirmed Champ
Confirmed Champ

We can access the DelegateExecution by execution keyword, so:
executionId = execution.getId();

jbarrez
Star Contributor
Star Contributor
you can do the same in a script, the execution is available as an object there