Groovy Lab – Print Calculation Information in Job Log

May 5, 2022

Groovy business rules give us the flexibility to customize the job log messages. Not only just seeing whether the job ran successfully or failed, but it can also tell a lot more.

 

For a quick example, I am running a dummy business rule and the job log displays the duration of the rule and who ran the rule with a time stamp. You can potentially record this information and bundle them together in a notification email.

Using Groovy business rules, we can do more than using traditional Essbase calc scripts. I am listing a few useful examples, but you can surely be creative. I will share more sample codes in the future.

Print Duration  

 

Print user information and time stamp

 

Print user variable

 

Print form name

 

Print POV members

 

Print job status

 

If you plan to use IF statements to process advance calculations and capture error messages, like the @return feature, you can consider the following two options.

Print exception or error message

 

 

 

 

 

Hope this post gives you some ideas for customizing business rule job logs via Groovy rules. More to come.

 

 

Leave a Reply