Async business rule

Simran16
Giga Contributor

How Async business rule works???

1 ACCEPTED SOLUTION

Abhijeet14
Mega Expert

Hi,

 

 

 

when the business rule is triggered by some condition, the system creates a  scheduled job that processes your script in a background.

 

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

 

 

Regards,

Abhijeet Bangera

www.dxsherpa.com

View solution in original post

5 REPLIES 5

Abhijeet14
Mega Expert

Hi,

 

 

 

when the business rule is triggered by some condition, the system creates a  scheduled job that processes your script in a background.

 

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

 

 

Regards,

Abhijeet Bangera

www.dxsherpa.com

Jaydeep Parmar
Kilo Guru

Async

Like after Business Rules, async Business Rules execute their logic after a database operation occurs. Unlike after Business Rules, async Business Rules execute asynchronously. Async Business Rules execute on a different processing thread than before or after Business Rules. They are queued by a scheduler to be run as soon as possible. This allows the current transaction to complete without waiting for the Business Rules execution to finish and prevents freezing a user’s screen. Use Async Business Rules when the logic can be executed in near real-time as opposed to real-time (after Business Rules). For example use async Business Rules to invoke web services through the REST API. Service level agreement (SLA) calculations are also typically done as async Business Rules.

 

Async Business Rules execute asynchronously after a database operation occurs.

Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.

Jaydeep Parmar

 

find_real_file.png

Kalaiarasan Pus
Giga Sage

The technical working is answered by Abhijeet where when a Async rules gets called, they create a schedule job entry in sys_trigger entry. With respect to why they should be used, the answer to that is the word Async. Whenever you can do some processing on server side that does not need take place immediately or be shown to the user, it should be preferred.