//do something with variable: var //find the current execution-id ??? ActivitiUtil.getRuntimeService().deleteVariable(executionId,var);
We can access the DelegateExecution by execution keyword, so:executionId = execution.getId();