Defining Bracket Elements
Page Name |
Definition Name |
Usage |
---|---|---|
GP_PIN |
Name the element and define its basic parameters. |
|
GP_BRACKET1 |
Define the lookup rules for a bracket. |
|
GP_BRACKET2 |
Identify the search keys and the return columns for the bracket. |
|
GP_BRACKET3 |
Enter lookup values. The search key values and the return column values that you selected in the Brackets - Search Keys/ Return Columns page appear here. |
|
GP_BRACKET_DATA |
Update search key values and return column values for existing bracket elements. |
Brackets enable you to create simple lookup tables. Based on a table that you define in a bracket, a bracket is used to look up data and assign certain values based on the lookup data. Brackets are also called bands and lookup tables.
Brackets can use one or more lookup values (search columns). Using a lookup value, bracket processing returns one or more columns that are available for use in other elements such as formulas.
Before defining a bracket, create any elements that you need to use in the bracket definition. For example, before building a bracket that lets you look up, for example, additional absence entitlements based on years of service, create the duration element that returns the years of service.
To define a bracket:
Define the naming information for a bracket on the Bracket Name page.
Define the lookup rules for the bracket on the Lookup Rules page.
Select the search key values and the return column values that you'll use in the lookup table on the Search Keys/Return Columns page.
Enter the lookup values on the Brackets - Data page.
When a search key doesn't exactly match the lookup values defined for the bracket (on the Bracket Data page), the interpolation method defines how the system calculates the values that the bracket returns.
You can select one of the following three interpolation methods on the Lookup Rules page:
Linear:
Uses a mathematical formula to create a prorated value based on the next-higher and next-lower keys (works only with brackets that have one or two numeric keys and with numeric result columns). With the linear interpolation method, you can use a rounding rule to specify the type of rounding for the returned value.
Use Nearest:
Uses the value from the row that has the nearest key (works only with brackets that have numeric or date keys).
Use Next Higher:
Uses the value from the row that has the next-higher key (works with any bracket).
Use Next Lower:
Uses the value from the row that has the next-lower key (works with any bracket).
Use Lowest and Highest Option
For the linear interpolation method, the system looks for the next-lower and next-higher rows to calculate the return value. When there isn't a lower or higher row, you can use the Use Lowest/Highest Option check box on the Lookup Rules page to indicate whether the system should take the lowest or highest matching option.
In bracket processing, the system looks up a row based on the key values and returns a bracket value.
Brackets always resolve to the value of the first column returned. They are resolved as they're encountered in the process. If an element in the return column of a bracket is encountered during processing, it doesn't automatically invoke resolution of the bracket, because the system doesn't know whether the element is associated with this bracket.
Brackets and all return columns are populated as of applicable slice and segment end dates that are used when encountered during processing, with these criteria:
If a bracket is used by another element that's being sliced, the bracket and all return column elements are also sliced.
If the bracket is encountered on the process list, it is resolved for the segment that's currently being processed.
If a bracket return column needs to be re-resolved during segmentation, the bracket should be used in the calculation or the bracket should be on the event list.
How Brackets Use Interpolation Methods
Three factors need to be considered:
Interpolation Method (corresponding Use Lowest/Highest Option check box if Use Next Higher, Use Next Lower, or Linear is selected).
Outside Table Limits (only if there's no match on the first key).
Error Processing Options (when there's no match using appropriate interpolation methods and selections).
Two options are available. If Generate Error is selected, the system does not resolve the bracket (or any of the return columns) and puts the calculation in error. If Continue Process is selected, the system resolves the bracket and all the other return columns to be either 0 or blank (depending on the field format).
This table clarifies how batch processing treats each interpolation method:
Interpolation Method |
Batch Process |
---|---|
Use Nearest |
If mismatch key is nonnumeric, go to Error Processing Options. If mismatch key is numeric determine whether next-lower and next-higher values exist:
|
Use Next Lower |
Determine whether next-lower row exists:
|
Use Next Higher |
Determine whether next-higher row exists:
|
Linear |
If mismatch key is nonnumeric, go to Error Processing Options. If mismatch key is numeric determine whether next-lower and next-higher values exist:
|
Additional Notes About Batch Processing for Bracket Elements
Search keys are considered in the order in which they are entered on the bracket definition. Values are in ascending order (based on key order).
For all interpolation methods, if all keys match, use that row. For all interpolation methods, try to match on keys sequentially (first key, second key, and so on).
What to Do When Keys Are Mismatched
If there's a mismatch on the first key:
Determine whether the mismatch is specified in Outside of the Table Limits.
If the first key value is under the key 1 value defined on the first row:
If Use First Row if Under is selected, use the first row.
If Use First Row if Under isn't selected, go to Error Processing Options.
If the first key value is over the key 1 value defined on the first row:
If Use Last Row if Over is selected, use the last row.
If Use Last Row if Over isn't selected, go to Error Processing Options.
If the mismatch isn't specified in Outside of the Table Limits and no interpolation method is selected, go to Error Processing Options.
If an interpolation method is selected and the field format of the first key is nonnumeric, go to Error Processing Options.
If an interpolation method is selected and the field format is numeric, go to the appropriate logic, based on the interpolation method process. See details of each interpolation method in the preceding table.
If there's a mismatch on a subsequent key and no interpolation method is selected, go to Error Processing Options.
If there's a mismatch on a subsequent key and an interpolation method is selected, consider only the rows where all keys have been matched.
Go to the appropriate logic based on the interpolation method process. Refer to the details of each interpolation method in the preceding table.
Use the Bracket Name page (GP_PIN) to name the element and define its basic parameters.
Navigation
Note: You name every element and define its basic parameters on an element name page with the object name of GP_PIN. The page title and general appearance of this page change based on the type of Absence Management element that you are naming and defining.
Use the Lookup Rules page (GP_BRACKET1) to define the lookup rules for a bracket.
Navigation
Image: Lookup Rules page
This example illustrates the fields and controls on the Lookup Rules page.
![Lookup Rules page](img/i-cd7d26dn-796d.png)
Field or Control |
Definition |
---|---|
Error Processing Options |
Select from the following values: Generate Error: Stops processing and generates an error. Continue Process: Continues processing without returning any value. |
Outside Table Limits |
Defines what happens if the key values are over or under those that are defined in the table: Use First Limit if Under: Select if key values are under those that are defined in the table. Use Last Limit if Over: Select if key values are over those that are defined in the table. |
Interpolation Method |
Select an interpolation method that defines the values to return if the system doesn't find an exact match; for example, if the key values are between two rows on the table. All interpolation methods use only one search key, the first mismatched one. Select from the following values: Linear: Uses a mathematical formula to create a prorated value based on the next-higher and next-lower keys (works only with brackets that have one or two numeric keys and with numeric result columns). Use Nearest: Uses the value from the row that has the nearest key (works only with brackets that have numeric or date keys). Use Next Higher: Uses the value from the row that has the next-higher key (works with any bracket). Use Next Lower: Uses the value from the row that has the next-lower key (works with any bracket). |
Use Lowest/Highest Option |
When using linear interpolation, the system matches on all search columns that have already been matched. Then it looks for the next-lower and next-higher rows where the search columns match. When there isn't a lower or higher row where search columns match, you can use the Use Lowest/Highest Option check box to indicate whether the system should take the lowest or highest matching option. |
Rounding Rule Element |
With linear interpolation, you can use a rounding rule to specify the type of rounding for the returned value. The system applies this rounding rule to all return columns whose field format is numeric (decimal or monetary), because linear interpolation takes the ratio of the next-lower return column value and the next-higher value and returns the prorated value based on the ratio that is above the next-lower value. The result might be an excess of decimal places. |
Use the Search Keys/Return Columns page (GP_BRACKET2) to identify the search keys and the return columns for the bracket.
Navigation
Image: Search Keys/Return Columns page
This example illustrates the fields and controls on the Search Keys/Return Columns page.
![Search Keys/Return Columns page](img/i-cd7d26dn-79bc.png)
Search Columns
In the Search Columns group box, select the keys that the system uses to search the bracket data. For each key, select the Search Key Type (element type) that you're entering. Then select the corresponding Element Name. You can enter up to five search keys.
Return Columns
In the Return Columns group box, select the columns that tell the system where to store the values returned by the lookup. For each column, select the Return Entry Type(element type) that you're entering. Then select the corresponding Element Name. The bracket itself is the first returned column. You can enter up to eight return columns.
Use the Data page (GP_BRACKET3) to enter lookup values.
The search key values and the return column values that you selected in the Brackets - Search Keys/ Return Columns page appear here.
Navigation
Image: Data page
This example illustrates the fields and controls on the Data page.
![Data page](img/i-cd7d26dn-79a8.png)
Bracket Search Keys and Return Column Values - Search Keys Tab
Enter the values of the search keys.
Bracket Search Keys and Return Column Values - Return Columns Tab
Enter the values to be returned for each search key value, based on your entries on the Search Keys/Return Columns page. You can enter multiple return values.
Use the Bracket Data page (GP_BRACKET_DATA) to update search key values and return column values for existing bracket elements.
Navigation
Image: Bracket Data page
This example illustrates the fields and controls on the Bracket Data page.
![Bracket Data page](img/ifbce055n-7f29.png)
This page provides administrators with an easy way to update the search key values and return values for an existing bracket. You define the original search keys, return columns, and lookup values for brackets using the Search Keys/Return Columns Page and Brackets - Data Page.