Hi there,
I'm currently working on a project that uses Activiti to trigger external systems and then waits for a response from that system in the form of a JMS message. I have a Java Service task that is responsible for calling the external service and then a listener class that uses RuntimeService.signal(executionId) to set a receive task to completed. The issue is that when the external service responds too quickly (within milliseconds), it seems as if Activiti hasn't transitioned into the receive task yet and the workflow isn't able to continue.
I've been trying to solve this by setting up the tasks in parallel but that's been its own can of worms as the trigger ends up happening multiple times. Is there a suggested way to build my workflow to fit this sort of situation?
I've attached images of our current workflow as well as the solution I've been attempting.
Could you maybe combine the sending and the listening into a single service task?
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.