11-24-2016 12:31 AM
03-28-2017 01:25 AM
A little late to the party here..how different in the pause/resume requirement to the already existing suspend/activate function in the activiti engine? Some references to suspend/activate feature is given below.
https://www.activiti.org/userguide/#api.services.suspend
https://www.activiti.org/userguide/#_suspend_a_process_definition
https://www.activiti.org/userguide/#_activate_or_suspend_a_process_instance
11-24-2016 10:59 AM
12-12-2016 04:53 AM
Hi all,
we also want to add this functionality to our project. Our use case is to retry a failed service task without restarting the whole workflow. Moreover this functionality shall be accessible via a REST call.
I've made some research and found that this feature has already been asked quite a few time.
How to implement restart/pause/resume in Activiti
The last link gives some unit test and code for a 'RestartInstanceActivitiCommand'. However I'm not able to integrate it to our use case.
The current solution I'm investigating is by using an error boundary event to catch the service task failure. This error boundary event is linked to a receive task waiting for a signal to restart the service task, as the following figure illustrate :
This diagram work well, as we are able to successfully retry the service task when it fail, but the workflow does not seems to reach the end event when the service task is finally successful. The process instance isn't ended.
Any hint or advice for another strategy in order to implement this feature will be greatly appreciated.
Best Regards.
12-16-2016 12:04 PM
Hi Sylvain,
executions = runtimeService.createExecutionQuery()
.processInstanceId(processInstance.getId())
.list();
for (Execution execution : executions) {
rootLogger.info("Process execution: " + " id: " + execution.getId() + " and current activity id= "
+ execution.getActivityId());
}
12-16-2016 12:08 PM
12-19-2016 07:22 AM
Hi Thong,
Thanks for the reply. We have created a Jira ticket for this issue, link - https://activiti.atlassian.net/browse/ACT-4249
Currently, it is not assigned to anyone. Please assign the bug to us so that we can start contributing.
We are a team of 3.
- debadarsini
- mary.rani
- ak1801
Also, please provide link to Activiti Development guide & Guide for Contributions (if any) for our reference.
Best Regards,
Akshit.
12-19-2016 10:06 AM
Hi Ak,
I am not an Alfresco employee so I can't really assign you to anything. I have seen best practice guideline for being a contributor for Activiti. I'd recommend you looking at these resources:
- Become Activiti contributor: Activiti FAQ
- Jira issue unit test: How to write a unit test when creating an Activiti Jira issue | Small steps with big feet
Hope that helps
Thanks,
Thong Huynh
12-19-2016 12:13 PM
Hi Thong,
No problem. We'll follow the resources which your shared.
Thanks again for the help.
Regards,
akshit mahajan
03-28-2017 01:25 AM
A little late to the party here..how different in the pause/resume requirement to the already existing suspend/activate function in the activiti engine? Some references to suspend/activate feature is given below.
https://www.activiti.org/userguide/#api.services.suspend
https://www.activiti.org/userguide/#_suspend_a_process_definition
https://www.activiti.org/userguide/#_activate_or_suspend_a_process_instance
06-14-2019 04:32 PM
Hello Debadarshini,
Where can I see the implementation of the above. Can yoy please let me know the path as I have some requirement similar to this. For now we are using Boundary events as workaround
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.