synchronous input/output ECC queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2018 11:21 PM
From Script include - We are triggering a output ECC queue which calls MID server Jar and get the response in input ECC queue.While reading input ECC queue response XML – we observed that its not synchronous. Means sometime even input response is not available but we search try to read response, in that case it will be empty. Is there any mechanism in Script Include where output/input queue is synchronise and we would get notify/callback when input Ecc queue is available to read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2018 07:34 AM
There's a thread over here - https://community.servicenow.com/community?id=community_question&sys_id=47c28b61dbd8dbc01dcaf3231f961960 but the links all point to the old WIKI, so let me try to help you out...
The ECC Queue puts records in with a State of Ready. A Sensor usually is what processes that record and moves the state to either Processing or Processed.
If you aren't working in Discovery (which it seems you're not) then you can add a probe parameter called skip_sensor and then add your own Business Rule on the ECC Queue (being very careful to make sure that your BR only runs on your particular Topic, Name and State = Ready inserts / updates.)
When your code is done processing, have it set the ecc_queue record to state = processed and you should be good.