1. A current task is allocated to multiple assignees. It should be possible to assign more people, once the task is active.
2. Current activiti version used is 6
3. CreatedExecution() method was supported in activiti 5. As per the activiti 5 to 6 migration guide, the this method is moved to ExecutionEntityManager. and can be accessed from Context
4. How to get the Context in spring boot ?
5. OR what is the possible option to add new executions run time to a task
Can you give an example on how was that possible in version 5?
Thanks for your attention,
In activiti 5 version, we can use
org.activiti.engine.impl.pvm.delegate.ActivityBehavior
to create an execution
Activiti Migraton Guide : Activiti v5 to Activiti v6 | Activiti
Calling Context.getCommandContext().getExecutionEntityManager() doesn't work for you? It only works in an active context scope. You can use ManagementService (Activiti - Engine 6.0.0 API) to execute something in active context if your code doesn't run in an active context.
Thanks for your reply. I will try this case.
The use case for me is like - I have created a multi instance user task at one point of time in the BPMN flow. (The multi instance task is controlled by "noOfInstances" variable in BPMN). The requirement is to add new/delete existing assignees of this multi user task. Deletion of an assignee is much easy, as we just complete the task for that user. But add a new assignee and changing the "noOfInstance" variable was not possible (this is my issue).
The issues faced for getting the active context
1) As per my understanding, active context can be obtained if a call back trigger to java happen from BPMN flow (means the task listener / execution listener). This is not possible for me, as i wont be sending any trigger to BPMN flow in my use case explained above
2) Get the active context from java with out any BPMN trigger ? Not sure this is possible or not, Also we are using the spring boot activiti startup dependency, so the engine/configurations are controlled by Spring
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.