Chapter 28: Oracle Fusion Fast Formulas – Using Database Items (DBIs)
Database Items (DBIs) are one of the most powerful features in Fast Formulas. They allow you to fetch real-time data from Oracle Fusion HCM database to use in your formula logic, making your formulas smarter and more dynamic.
๐น What Are Database Items?
Database Items (DBIs) are predefined references to data stored in Oracle Fusion. You can use them to read values like employee name, salary, job code, date of birth, etc.
These items follow naming conventions based on the data source and element name.
๐ Common DBI Naming Patterns
Type | Example DBI Name |
---|---|
Element Input | SALARY_ELEMENT_INPUT_VALUE |
Person Attribute | PERSON_DATE_OF_BIRTH |
Job Info | ASSIGNMENT_JOB_NAME |
Grade | GRADE_NAME |
Absence | ABSENCE_DAYS_TAKEN |
๐งช Example Formula Using DBI
This formula uses a DBI to fetch the salary value and calculates a 10% bonus.
๐ Important Notes
-
You must declare a DEFAULT value for DBIs using
DEFAULT FOR
in case the item is null. -
DBIs are read-only. You cannot assign a value to a DBI inside the formula.
-
DBIs can vary depending on the legislative data group or business object.
๐ฆ Where to Find DBIs?
-
Navigate to:
-
Navigator > Payroll > Calculation Cards > Manage Fast Formula
-
-
Use "Database Items" button to search and insert DBIs relevant to your context.
๐ Example Use Case: Gender-Based Bonus
This formula gives a higher bonus to female employees.
๐ง Best Practices with DBIs
# | Practice |
---|---|
1 | Always set default values using DEFAULT FOR |
2 | Use meaningful DBIs to make formula logic dynamic |
3 | Use the Database Item search tool to find exact DBI names |
4 | Be cautious: DBI values are context-sensitive (based on date, assignment, etc.) |
๐ Mini Quiz
1. What is the purpose of DEFAULT FOR
in a formula?
a) It assigns values to a DBI
b) It sets fallback values when DBI is null
c) It defines the input data type
d) It creates a new database item
✅ Answer: b) It sets fallback values when DBI is null
2. Can you modify a DBI value within a formula?
a) Yes
b) Only in certain modules
c) No, DBIs are read-only
d) Only using input override
✅ Answer: c) No, DBIs are read-only
No comments:
Post a Comment