by Shikha Agarwal

Simulate Approval Rules

Did you know that you can create a test case once and keep on testing it until you have reached the required approval rules logic without submitting or recreating the transactions again and again.

You can do this using Test Rules > Simulate.

When you use Simulate approval rules, if the configuration passes the test, you can use the rule. If the configuration has issue, you can correct the configuration, commit, and test the rules again to verify if the errors are removed.

01.jpg

Steps to enable the simulate approval rules:

  • Create and enable profile option.
  • Add the privilege to your role.
  • Test the rules.

Create and enable profile option:

Profile option code: HCM_TEST_APPROVAL_RULES_ENABLED

Check if the profile option exists, if not you need to create one and enable it site wide.

Navigate to Setup and Maintenance >> Search the task >> Manage Profile Options and add the profile option as below:

02.jpg

Mark the profile option as enabled and updatable at site level:

03.jpg

Navigate to task: Manage Administrator Profile Values and set the profile value to “true”:

04.jpg

Add the privilege to your role:

Ensure that you have the below role/privilege assigned to your account:

  • Review HCM Approval Transactions as Administrator (ORA_PER_REVIEW_HCM_APPROVAL_TRANSACTIONS) duty role
  • Test Approval Rules (PER_TEST_APPROVAL_RULES_PRIV) function privilege.

The above role/privilege is inherited by Human Capital Management Application Administrator job role which you can assign directly to your role to get the access.

Test the rules:

Navigate to Tools >> Transaction Console, click the “Approvals Rules” tab.

05.jpg

Search for the rule you want to test:

06.jpg

Note: Testing of rules is applicable only to supported processes or responsive actions in Employment flows. The ones greyed out in above screenshots are not available. If testing is available for the process, the Test Rules icon is displayed.

Click the Test Rules icon to go to the “Approval Rules” configuration page. In the “Test Approvals Rules” page, click Simulate.

07.jpg

08.jpg

Review the processing message and check for errors. In case of errors, navigate back to Configure Rules, make changes, commit the changes, and then test the rules again.

09.jpg

References: