i want to write a business rule on Ecc queue to monitor the specific payload, and extract the data from payload and do the processing and update a ticket.

mazin690
Tera Contributor

i want to write a business rule on Ecc queue to monitor the specific payload, and extract the data from payload and do the processing and update a ticket. currently we have asynchronous call, As soon as the  output sent thru Ecc Queue, we will get the response in few sec..

But i want the BR to monitor the Ecc Queue and extract data that are coming in late.(ex.2 min)..all these are happening in Insert. And we have keyword RITM number in the payload which was not their earlier.  how to handle this.?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mazin,

you need following values for BR in an after insert/update condition so that this BR triggers only for your case.

Name, Topic

you need to parse the xml payload; give topic name, give name there; also are you receiving something like success or failure so that you know when to parse and update which ticket

current.topic == "<topci>" && current.name == "<name>" && current.queue == "input" && current.state == "ready" && current.payload.toString().indexOf("Success") != -1

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hi Ankur,

 

But how we will catergories them, that if the particular payload procesing time more than 2 min..already the existing sceanrio is workin async..so now here we care tryin to monitor those who take times. and their is no RITM number in the existing scenrio..but here they will be giving us RITM Number

Hi Mazin,

I believe you should have something in common to know whether the incoming ecc queue record is for what output ecc queue record.

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hi ankur,

 

yes i have RITM number has common..for the existng scenario... which doent have RITM number but for the Delay proccessing paylaod , i will have RITM.