How to pass and display variables in Sub-process

cancel
Showing results for 
Search instead for 
Did you mean: 
axferreira
Member II

How to pass and display variables in Sub-process

Hi All,

I'd like to display multi instance element.
 
**Using script task event and setting the variables manually worked.
1 Reply
openpj
Moderator
Moderator

Re: How to pass and display variables in Sub-process

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());