Update sub-process variables dynamically

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2021 12:02 PM
**Using script task event and setting the variables manually worked.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2021 10:34 AM
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());
