You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Calling a Business Rule from a Groovy script (OWP_Add Requisition_GT)

Received Response
edited Apr 27, 2021 5:08AM in Planning 7 comments



Our client has its own version of calculating Benefits and Additional Earnings; so we created a custom business rule ("HS_Calculate Benefits Additional Earnings") to do the calculation, which is way much easier to modify the existing formula.

We'd like to do such Benefits/Earnings calculation when users add requisition. At the end of our modified version of "OWP_Add Requisition_GT", we added some JobFactory statements to call the Benefits/Earnings business rule.

The Jobs interface showed that both Groovy script and the Business rule were completed with correct RTPs. However, the end result was that not only the Benefits/Earnings values were not there, the whole record of the new requisition was not created at all. What were the things we didn't do properly?

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!