Global Functions
This table lists the global functions that you can use when defining rules.
Name |
Variable Type |
Description |
---|---|---|
Get string value from value set | String |
Returns string format from one of the delivered value sets: Get value from user defined table (UDT)
Convert Gregorian Date into Hijri date Format
|
Get number value from value set | Integer / Long / Decimal |
Returns number format from one of the delivered value sets: Get value from user defined table (UDT)
|
Get date value from value set | Date |
Returns date format from one of the delivered value sets. The value set must return a date string format yyyy-mm-dd. Get value from user defined table (UDT)
|
Get the current state of the transaction | String |
Returns the transaction approval phase value from the business object.
|
Convert string in yyyy-mm-dd format to a date | Date | Returns a date converted from a string. It can be used only for date comparisons and can't be used for defaulting values. |
Get incumbent count for a position as of a date | Integer | Returns the current incumbent count for a position as of a date. These parameters are provided for the function
|
Substring |
String |
Returns a part of a string These parameters are provided for the function
Expression Example
|
Get string value from HCM feature details |
String |
Returns setup data from multiple sources in HCM, such as address validation option for a legislation or address style code for a legislation. These 5 parameters are provided for the function
These functions are supported. Address Validation Option for a Legislation
Address style code for a legislation
Payroll license for a legislation
Payroll period start date for an assignment
Payroll period end date for an assignment
|
Get long value from HCM Params |
Decimal |
Returns a long value from HCM Params. |
Get integer value from HCM Params |
Integer |
Returns an integer value from HCM Params. |
Get previous person rating |
String |
Returns the latest performance rating for a person ID. For example, you can use this function when a person is recommended for rehire. Valid values are listed on the Profile Rating Models page on the My Client Groups tab |
Get today's date in custom time zone |
Date |
Returns a date in a specific time zone to reconcile server time with user time. For example, if you have a rule to prevent future transactions and your HR specialist is in India and your server is in the US, then the rule will prevent the HR specialist from entering transaction effective today (client time) if you don't reconcile the server time using this function. The value returned is a date with a time zone. A null value is returned if the time zone passed as HCM Params is invalid. For more information on the time zones accepted as HCM Params, refer this Java time zone API :
Gets the time zone for the given ID. Parameters: ID - Identifier for a time zone, either an abbreviation such as "PST", a full name such as "America/Los_Angeles", or any other user-defined ID such as, "GMT-8:00". Note that the support of abbreviations is for JDK 1.1.x compatibility only and full names must be used. Returns the specified time zone, or the GMT zone if the given ID can't be understood. Java Time Zone API Values are located on the Oracle Help Center at docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html#getTimeZone(java.lang.String) |