How to pass EccQueue parsing response back to Scheduled job/another business rule/widget server

Kishore4321
Tera Contributor

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 ?

 

 

 

3 REPLIES 3

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.


Kishore4321
Tera Contributor

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)