I've been waiting (like so many of you) for the latest PBCS/EPBCS June release on Test environments to play around with the latest features! Oracle published the list of updates here June 2017 Release,,, for me the thing that caught my attention is the introduction of Groovy scripting in Calculation Manager, the first one to write and elaborate on that was Celvin.
So today I finally got to play around with the feature and did write a very simple "Hello World" kind of script just to test and it was really fun!
So now you can go "Rules" under "Create and Manage", create a new script, switch to Script mode, on the right side next to Jump to line you have Script Type as shown below.
Now, I copied one of EPBCS's pre-built Groovy scripts and changed it to simply return an error message to indicate whether the rule was executed from the "Rules" launcher or the "Dataform" business rules launcher. Here is the script
So now, I'll go and run the rule from "Rules" launcher
I'll get the following message...(The same concept is already applied in some of the pre-built EPBCS rules)
And If I run the rule from a dataform (any dataform)...
I'll get..
So it's officially here, Groovy scripting in the cloud! It's been there for a while for on-premise Planning, so it's really exciting to have it in the cloud.
Now we have a glimpse of the future of scripting, exciting times ahead :)
Great stuff. Thanks for pointing this out. Groovy is a powerful scripting language and I am very curious on how it can be used. The small notes in the June 2017 update point to data validation in the form, so I guess the Groovy rule only applies to the "client" part and not to the server part. I can not wait to have a look for myself.
ReplyDeleteKeep posting this good material!
Thanks Arthur! It is definitely powerful! I'll write another post which shows how it can be used in specific focused calculations which in my opinion is super cool!
Delete