cancel
Showing results for 
Search instead for 
Did you mean: 

Update sub-process variables dynamically

axferreira
Champ on-the-rise
Champ on-the-rise
**Using script task event and setting the variables manually worked.
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator

Try to get the RootProcessInstance and then you should get or set parameters from there:

ExecutionEntity yourCurrentExecutionEntity = (ExecutionEntity) execution;
ExecutionEntity processInstance = (ExecutionEntityImpl) Context.getCommandContext().getExecutionEntityManager().findById(yourCurrentExecutionEntity.getRootProcessInstanceId());