- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
4 hours ago - edited 2 hours ago
Issue-
A frequently encountered challenge when using executeAsync() is how to process the response coming back from the 3rd party and correlate to the source. This is because the correlation identifier set on the outbound request is not propagated to the corresponding input record in the ECC Queue — consequently, it becomes unfeasible to identify the originating source record and process the response without an alternative correlation strategy
Sample Requirement -
Whenever an incident is created, an outbound call (asynchronous) should be triggered to the 3rd party and description of the incident should be updated with the response from the 3rd party.
Solution -
1) Create BR on the incident table as below (on Insert)-
2) Create another BR on ecc_queue table with the required conditions like
Agent - RestClient
Queue- Input
State- Ready
Source - <3rd party URL>
3) The actual issue is correlating the Input to the Output record as the Correlation value for Output is populated by using below code in the BR -
4) To resolve this, we can use the link between Input and output record i.e 'Response to' column in the ECC Queue BR -
- Adding the below BR scripts used for this integration just for the reference -
BR on Incident table -
