Making an after BR Async

Anubhav24
Mega Sage
Mega Sage

Hi All,

 

We have made a after BR behave like an async BR , by calling a event in the after BR and then that event calls a script action however the BR is written on sc_task table and the update is happening on audit task table but since it was taking time immediately after the creation of task so we tried this way.

What i want to understand is :

1)When we transfer the control to event queue the execution thread gets to different way ? By this I mean BR execution thread and event queue execution thread. How is the execution thread processed in background at memory level?

2)If the above option is feasible and an effective measure, can we do the same for writing after BR on the same table itself ?

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Anubhav24 

After BR + event + script action ~~ Async BR

what's your business requirement?

When event is triggered it will get processed by system based on the memory and notes and how many current events are there in queue.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hence the processing of events and BR happens on a different threads right ?

@Anubhav24 

regarding whether they run on same thread or different is at the platform level which we won't know directly.

It all depends on the number of nodes, memory and semaphores

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Mark Manders
Mega Patron

What is your use case that you do it like this? 

An async BR does exactly the same and you can do it within one record, without having to create events and script actions. Why would you make something so complex if you can just change one field on the BR itself? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark