Workforce Management Functions
Fast formula methods work only between fast formula calls. Workforce Management passes records from Java programs and these values must be stored during the call, so you must use these workforce management functions to store and retrieve values between calls.
Don't use fast formula working storage area methods, such as WSA_GET and WSA_SET.
Function | Description |
---|---|
|
Set the numeric value for the item called P_PARM_NAME. Any existing item with the same name is overwritten. Parameters:
|
|
Same as SET_WRK_NUM, except it's used to store date values. Parameters:
|
|
Same as SET_WRK_NUM, except it's used to store string values. Parameters:
|
|
Get the stored value for the item called P_PARM_NAME. If there's no item called P_PARM_NAME, then return the default-value. The data type of the default value is the expected data type for the item. Parameters:
|
|
Same as GET_WRK_TEXT, except it's used to return numeric values. Parameters:
|
|
Same as GET_WRK_TEXT, except it's used to return date values. Parameters:
|
Rule Parameter and Header Values Functions
Use these workforce management functions to get rule header and parameter values. Any names used in a rule parameter function appear as input parameter values on the rule template Parameters page.
Function | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Use this function to get these text field values, which are set in the basic information section of the rule template definition page. Parameters:
|
|||||||||||||||
|
Use this function to get the numeric field value set in the basic information section of the rule or rule template definition page. Parameters:
|
|||||||||||||||
|
Use this function to get numeric values; set in the Rule Parameters section of the rule. Note: A rule template uses the name from P_VALUE_NAME to populate
the Parameters section of the rule template.
Parameters:
|
|||||||||||||||
|
Same as GET_RVALUE_NUMBER, except it returns string values. Parameters:
|
|||||||||||||||
|
Same as GET_RVALUE_NUMBER, except it returns date values. Parameters:
|
Miscellaneous Functions
Function | Description |
---|---|
|
Create a log for tracing and debug. All logs with this function appear on the Analyze Rule Processing Details page of the Time Management work area. They're in the Rule Processing Log column of the Processing Results section. Parameters:
|
|
In time entry rule formulas, use this function to format the data repository message for output. Note: Any message that is passed as output for the data repository
MUST use the appropriate GET_OUTPUT_MSG function for proper
formatting.
Use this function for the message code with a single token. It creates a single message string with one token for the output, formatted for use in workforce management. Parameters:
Example:
|
|
In time entry rule formulas, use this function to format the data repository message for output. Same as GET_OUTPUT_MSG1, except for messages that use two tokens. |
|
In time entry rule formulas, use this function to format the data repository message for output. Same as GET_OUTPUT_MSG1, except for messages with no tokens. |
|
Used only with workforce compliance rules. Add comma-separated tags to the message. Sample:
|
|
This function converts time to decimal, for example, 2.59 hhmm to 2.983 dec. |
|
Stop processing and raise a fatal error. |
|
Calculate duration (measure) using the start and stop date_time stamps. |
|
Return the short (3 character), upper case day of week from the date, such as MON and TUE. |
|
Compare the date with the string day of week and return YES or No. |
|
Verify if compare_date is between the start_time and stop_time.
|
|
Return the current server date and time. The date time isn't based on user Time zone. |
|
Get the current time stamp for the given resource, time zone type, and so on. Input:
|
|
Calculate the duration from start_time to current time based on the user's time zone or the supplied zone and offset. Input:
|
|
Select unprocessed events for a given resource and date range, similar to (executeQuery). The function caches the identified data. Use the get_unprocessed_event_rec function to loop through and retrieve each row. STATUS TEXT Output. Request status, possible values are:
status_log TEXT The output log file containing detailed information related to the 'FAILED' status and corresponding process data.
|
|
Get individual rows selected by the get_unprocessed_event_set function. STATUS TEXT Output. Request status, possible values are:
staus_log TEXT The output log file containing detailed information related to the 'FAILED' status and corresponding process data.
|
|
Get the time rule or formula null value. The returned value is text. |
|
Get the time rule or formula null value. The returned value is numeric. |
|
Get the time rule or formula null value. The returned value is a date. |
Data Access View Entry (DAVE) Functions
These functions let you filter and summarize time repository data that aren't available in the current time card period. The details for each DAVE function are included in DAVE Functions for Workforce Management Fast Formulas chapter.