I am using temporal SDKs with Java to run a temporal workflow, which has a few activities.
After all the activities are completed, a JMS message is created and sent to a message queue for asynchronous processing. Since there are no steps after sending the JMS message, the temporal workflow is deemed to be complete. The process looks like this:
Temporal workflow -> Activity 1 -> Activity 2 -> Activity 3 (Send JMS message)
However, once the JMS message is received by the listener component, I want to continue the steps carried out in this listener component as activities of the temporal workflow (which ended when the message was sent to the JMS queue).
How do I continue the activities of the existing workflow from the listener JMS component once the JMS message is sent from the temporal workflow?
The process that I require is:
Temporal workflow -> Activity 1 -> Activity 2 -> Activity 3 (Send JMS message)
Receive JMS message (in separate component/JAR) -> Activity 4 -> Activity 5
I have gone through the temporal documentation, but could not find anything to run Temporal activities outside of the code where the Temporal workflow is defined.
Shivam Lal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.