In Oracle Fusion HCM, a new tool “Autocomplete Rules” under HCM Experience Design Studio has been introduced in the 20A update to default specific business attribute field values.
Using this Autocomplete rule functionality, either we can Auto populate or Auto Validate the business attributes. We can default the business attributes either with a constant value or via some derived logic based on the value of other fields. For example, we can default the Probation and Notice Period for all employees while hiring as a static value or we can define logic based on the Designation of the employee for the Probation /notice period value population.
Pre-requisite
Here are the pre-requisite for the autocomplete rule in Oracle Fusion HCM,
- “Autocomplete Rules” rules will apply only to responsive pages and not to classic ones.
- Also, the autocomplete rules are under controlled availability. The customer/partner should raise an SR to request access.
How to Implement Autocomplete Rules in Oracle Fusion HCM:
Here we will demonstrate how to default the “Probation Period Field” in autocomplete rules to a constant value in a step-by-step process.
Step 1: Log in to the application with a user (user having access to create Sandbox) and then we would need to create a sandbox.
Step 2: Once we click on Sandbox a new page will open where we can choose the tools and create a sandbox.
Fig:1 Create Sandbox
Step 3: Next we need to navigate to Home Page and Click on “HCM Experience Design Studio”.
Fig 2: Home Page – HCM Experience Design Studio
Step 4: Once we click on the link (highlighted in yellow in the above screenshot) new page will open and we should choose the “Autocomplete Rules”. There are different actions against which we can choose the Autocomplete Rules and they would appear on the drop-down list on the work area.
Fig 3: Autocomplete Rules
Step 5: Also there are different types of autocomplete rules which can be created in Oracle Fusion HCM. They are
- Add Business Object Defaulting Rule
- Add Business Object Validation Rule
- Add Business Object Field Validation Rules
- Add Business Object Field Modification Rules
Fig 4: HCM Experience Design Studio – Add business object validation rule
In Autocomplete rules, “Add Business Object Field Validation Rules” allows us for various validations based on the data value stored in a business object field. “Add Business Object Validation Rule” allow us to restrict various future related transactions against any actions.
Step 6: In this step, we will create the Business Object Defaulting Rule. For this example, we would choose “Work Assignment” and “Add Business Object Defaulting Rule”. Once we click on those a new page will appear. We would need to populate the following fields.
Fig 5: Create Business Object Defaulting Rule
And this completes the autocomplete rule creation part.
Step 7: In this step, we will create a new employee and check whether the Probation Period Field gets defaulted. Navigating to the New Hire page.
Fig 6: New Hire page
Step 8: After entering the “Personal and Basic Details” section when we navigate to the “Employment Information” section we can see the Probation Period value gets defaulted.
Fig 7: Navigating to Employment Information
So, this is how we can make use of “Autocomplete Rules” to default values while performing different transactions within Oracle Fusion HCM Application.
Other Areas of Applications for Autocomplete Rules:
Utilize the Autocomplete Rules tool for the following tasks,
- Validate single-entity
- Validate Date attributes
- Validate across business attributes
- Default business attributes
- Default based on a condition
- Default based on complex business rules across objects
Author: Darshan G, Oracle Cloud Team