Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Fusion Blog
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

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:

  1. Add Business Object Defaulting Rule
  2. Add Business Object Validation Rule
  3. Add Business Object Field Validation Rules
  4. 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 

 

Rule Information

Name

Transfer not allowed between 5th and 10th of the month

Description

Transfer not allowed between 5th and 10th of the month

Active

Checked

Rule Logic

{


   The value of variable Action Code = (f) Get String Value from HCM Params (f) (EMP_Groovy_ActionTypeCode (f)  Action Occurrences.Current Row)

The value of variable DayOfAction = (f) Day of ((f) Action Occurrences.Action Date)


IF

(

 (f) Action Code Equals (f) EMPL_TRANSFER AND

 (f) DayOfAction Greater Than or Equals (f) 5 AND

 (f) DayOfAction Less Than or Equals (f) 10

)

( Show an Error with a message (f) Transfer not allowed between 5th and 10th of the month

)


}

  

 

 

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.


Ashish Harbhajanka

Comments   

0 #1 สาระความรู้ 2022-02-14 23:31
Oh my goodness! Awesome article dude! Thank you so much,
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
Quote

Add comment


Security code
Refresh

About the Author

Ashish Harbhajanka

 

Oracle Fusion HCM Techno Functional Consultant with overall 10 years of Experience in software industry with 5 years in EBS HRMS and rest 5 in Fusion HCM.

My areas of intesrest in Fusion HCM include :

a) Inbound Outbound Integration using FBL/HDL or BIP/HCM Extracts.

b) Fast Formula

c) BIP Reports

d) OTBI Reports

e) RESTFUL API / Web Service Call

f) Functional Setup

g) End to End Testing

h) Regression Testing

i) Preparing COnfiguration Workbooks

j) Creating Speed Solutions

k) Preparing User Guides

l) UPK

........

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner