I am building a custom application in Pega 7.3.1 where multiple processes (workflows) will be running at the same time. I have a step where each process sends a request to an external system and is waiting for a response via REST call. Once the response has been received, I have to correlate the response to the correct process based on a specific field (ex: SSN) so the process can move to the next step.
What is the best way to implement this?
Should we publish the message to a JMS queue so the process can subscribe to the queue? If yes, how do we implement this?
Response could potentially come from external system after many days/months. Once the response comes, we need to correlate a key field in the response to correct process instance so that the appropriate process comes out of the wait condition and continues processing to next step.