Calling a Business Rule from a Groovy script (OWP_Add Requisition_GT)
Content
Hi,
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?