This was always a special request from multiple customers Can I run Data Management rules from a form? For quite a while the answer was sorry you cannot. But with Groovy + Calculation Manager you can do that. Yes, you can call the Data Management rule from a Calculation manager rule and attach the Calculation Manager rule to a Menu and attach that Menu to the Form, so the users can run them when needed.
The next question is if the User id is not an Admin user, will he be still able to run the Data Management rule. As per the Oracle EPM security setup you cannot.
But
you can overcome this by using Connections
either by using On
Demand Connections or Named
Connections.
A Brief intro on when to use when, (from the Oracle document)
In general, connections can be created in one of two ways:
On-demand connection
Connection connection = connection(
http://server:port/HyperionPlanning/rest/v3/applications/Vision
, "user", "password")
These connections are easy to change and are great for prototyping and trying out connections.
Named
connection
Connection connection = operation.application.getConnection("Job Definitions")
These connections allow clean separation between resource details and usage. This has multiple benefits over on-demand
connections including:
- Ease of maintenance -
Reuse a connection definition in multiple scripts. Any changes to the
definition will automatically apply to all scripts using the named
connection.
- Enhanced security -
with on-demand connections, confidential information such as passwords and
API keys are visible to anyone who can edit the Groovy script. With named
connections, sensitive information can be encrypted and stored securely
and cannot be seen or retrieved by Groovy scriptwriters.
- Ease of use - simplifies the creation of connections to first-party resources such as Oracle Cloud Services.