Hi all,
I'm using a Rest call task in my process and trying to send an email to a user when the target server is down, or there is connection time out for any reason. How can I capture the this time-out event? I'd like to handle the event to change the flow in the process; is this possible?
Thanks
better use service task that does the rest call and throws BPMN error that can "catched" in the process using boundary catch event
Thank you Abbas,
In the end I implemented the rest call inside a sub-process and put a boundary timer event in the sub-process, so if the REST call is not working for more than x minutes it will cancell the subprocess and execute additional actions.
Thanks anyway.
Jose
Glad you found a solution. Would you be able to add the source code or outline the approach in more detail to help other people?
Cheers,
Hi Eddy,
Below is the diagram of the approach I used. If the REST call is not working for within 1 min, the timer boundary will terminate the subprocess and trigger additional actions. Hope this helps.
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.