How to pass EccQueue parsing response back to Scheduled job/another business rule/widget server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 09:28 AM
Hi all,
We are calling REST API in Portal widget server script, to get execute this API sometimes it is taking huge time. for user keep on spinning showing.
To avoid this , we are planning to create BR on ECC QUEUE (After/Insert , current.agent_corelator =="REST.getCusterDetail" ) table and parse XML output there only send response back.
Request : After parsing Ecc_Queue payload XML in Business rule how to send that parsed response back to Widget ? because we are calling REST API in widget , so expecting response back to there .
Does it possible to send response back from BR to Widget ? Looking for any suggestions, Idea's ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 09:47 AM
Hi you will need a record watcher. See the following explanations:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 10:16 AM - edited 05-20-2024 10:25 AM
Perfect for Widget
spUtil.recordWatch($scope,"ecc_queue","agent_coorelator=REST.getCustomerDetail",function(name){
console.log(name.data);
});
}
like watcher, do we have any possibilities for Scheduled job to get BR data ? that's okay if nothing was there for Scheduled jobs .
I can see setRequestBody option, let me know can i use this or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:57 PM
Can someone share any suggestions or ideas
Kindly let me know does it achievable or not ( pass BR returning data into scheduled job/widget server code)