Introduction
In one of the previous article Creating Custom Transaction Rules under HCM Experience Design Studio Feature in Oracle Fusion HCM we have seen how we can make custom rules to configure business transactions and pages. While the transaction design studio allowed making fields mandatory / optional, make fields hidden / visible the “Auto Complete Rules” takes customization to a whole new level. It allows defaulting field values based on certain condition and also provides an option to incorporate validation rules.
One very important point to note here is that “Autocomplete Rules” rules would apply only on responsive pages and not on classic ones (I understand might seem like a little incorrect but the only supporting logic could be that one probably would not be using Classic and Responsive pages both at same time, so if you/your organization decide to go the responsive way it is still ok).
In this post we will demonstrate how to incorporate an Error Message when we try to perform a transfer action between 5th to 10th of every month. Similarly, one can also apply rules like “Hiring Cannot happen after 15th of every month” or “Termination should not be performed on the last day of the month” etc. We can also have rules to default values during a specific business process but in this example we would restrict ourselves to only the validation rule and try to understand the autocompletion rules feature.
Worked Out Example
As a first step we should ensure that we login to the application with a user having appropriate credentials (user having access to create Sandbox) and then we would need to create a sandbox.
Navigation is : Login To Application -> Navigator -> Configuration -> Sandbox
Once we click on Sandbox a new page will open where we can choose the different tools and create a sandbox (we will name it as “AH_AutoCompletionRules)
Next we will need to navigate to Home Page and Click on “HCM Experience Design Studio”
Once we click on the link (highlighted in yellow in above screen-shot) 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
Also there are different types of rules which can be created namely:
- Add Business Object Defaulting Rule
- Add Business Object Validation Rule
- Add Business Object Field Validation Rules
- Add Business Object Field Modification Rules
Creating Business Object Validation Rule
For this example we would choose “Action Occurrences” and “Add Business Object Validation Rule”. Once we click on those a new page will appear. We would need to populate the following fields
And with this the rule creation part is complete.
Performing a “Transfer” Action and Verifying Results
As a next step, we will try to perform a “Transfer” action and verify results
We could see from the above screenshot that the Date of Transfer is 09-Mar-2020 which is between 5th and 10th of the month and hence we encounter the error. Now if we change the date to say 11-Mar-2020 we should be able to proceed and no error will be encountered.
Summary
So this is how we can make use of “Autocomplete Rules” to add custom validation while performing different transactions within Oracle Fusion HCM Application. We can also add business object defaulting rules as well as add validation rules to business object field but that we will cover up in a subsequent article.
With this I have come to the end of this article and hope this was a good read.
Thanks all for your time and have a great day ahead.
Comments
However I am going through issues with your RSS. I don't understand why I am unable to
join it. Is there anybody having the same RSS issues?
Anybody who knows the solution will you kindly respond?
Thanks!!
my homepage :: สาระความรู้: https://slides.com/eaa78org
RSS feed for comments to this post