The other component of workflow requires setting up the UserCalc to incorporate the action event created in IMWA. The integration of workflow required some additional functionality that was not previously available to UserCalcs. This section should be used as a supplemental aid to the User Calculations section and is not to be used in place of it. Please refer to the User Calculations section for a more thorough explanation of UserCalcs and their functionality.
The Define UserCalcs (IMUC) screen is where all of the coding is done for each UserCalc.
wf_4-1.jpg
Under Construction | This status value indicates that the UserCalc has not been completed and therefore will not be published. |
Being Tested | This status value indicates that the UserCalc has been completed, compiled and is being tested by the user who created it. It will not be published. |
To Be Published | This status value indicates that the UserCalc is ready for publishing. You can not set the user calc to this value manually. |
In Production | This status value indicates that the UserCalc has already been published and is in use. |
Pre-Compiled | This status is now obsolete and will be removed in a future version. |
Calculations | These are used by the main program and may call Qualifiers and Functions in order to perform a customized action or operation. The Payroll, Forecasting & Costing and Workflow modules exclusively use calculations. |
Qualifiers | These are used to reduce the number or employees or calculations processed by the UserCalc. |
Functions | These are used to perform a calculation or query and return a value to the calculation. The Benefits and Attendance modules exclusively use "Functions". |
Not Specified | Use this or leave it blank for most purposes. |
Disbursement Message | Not used for Work Flows - see UserCalc for more details on this usage. |
Secondary WF | This option tells the Work Flow engine that this UserCalc is ONLY to be called from another UserCalc and should NOT be fired on its own by the triggering product. |
Data for the Lines tab is stored in the P2K_AM_USER_CALC_DETAILS table.
Line | CMD | Type 1 | Operand 1 | OPER | Type 2 | Operand 2 | Type 3 | Operand 3 | If GOTO | Else GOTO |
---|---|---|---|---|---|---|---|---|---|---|
10 | IF | CF | NewHire | EQ | B | TRUE | 200 | 99999 |
It is useful to increment line numbers to the next 100 or 1000 at the start of each section of logic. This will make your UserCalc easier to read and maintain by future users.
There are two commands that are available and strictly used for Workflow. These are: ACT and STOP.
ACT | This command is used to initiate a workflow action event. The workflow action event is created in IMWA and referenced in the UserCalc using this command. |
STOP | This command is used to raise an exception to the user. This command should only be used to absolutely stop a save from taking place. It throws a database exception that displays the brief text in Operand 1 along with the stack trace of where it came from. |
The ACT command is unique in that once it has been selected Type 1, OPER and Type 3 fields are defaulted with the values AC, LOG, and RT respectively, as indicated in the diagram below.
The following table indicates five special operand types that are available for workflow.
Old Value (OV) | This refers to the Old Value of the item being referenced in the Operand. |
New Value (NV) | This refers to the New Value of the item being referenced in the Operand. |
Action Code (AC) | This refers to the name of the workflow action code (Type 1 only) |
Database Value (DB) | This refers to other database columns that are available based on the Product Tables (IMPT) records. |
Recipient Type (RT) | This describes who will be in receipt of this action event as defined in the Maintain Workflow Actions IMWA screen (Type 3 only). |
Line | CMD | Type 1 | Operand 1 | OPER | Type 2 | Operand 2 | Type 3 | Operand 3 | If GOTO | Else GOTO |
---|---|---|---|---|---|---|---|---|---|---|
200 | ACT | AC | NEW EE EMAIL | LOG | $S | CURRENT-DATE | RT | Manager | 300 |
In the case were the CMD is ACT, Operand1 displays the name of the workflow action event that was created in IMWA.
Clicking on the "Operand 1" LOV button will bring up a list from which a selection can be made.
When the "ACT" command is selected, "RT" will always default in. RT refers to 'Recipient Type'.
If GOTO Please refer to the User Calculations manual for a detailed explanation. The two new workflow commands ACT and STOP require an "If GOTO" value to be indicated.
Else GOTO Please refer to the User Calculations manual for a detailed explanation. The two new workflow commands ACT and STOP do NOT take an "Else GOTO" value.
Description This is the area where the user will write the messages to be used in the Workflow Action Events (i.e. emails or online messages).
In the example above, the UserCalc calls the workflow action "NEW EE EMAIL" at line 200. This action has been set up to notify a manager, via email of a new hire (done in IMWA). The actual content of the email is taken from the 'Description' section.
This text is customizable.
In this example, the employee's name, hire date and Assignment title are stated in the email sent to the manager. This information is referenced (within double brackets << >>) in the notes section. The field is built with the table alias and column name. Note that it must be a table that is accessible via either the NV/OV or DB Types. The email from the example above that is received by the manager will look similar to:
… This e-mail notification has been sent to you from the Human Resources system, to inform you that Jack Smith has joined our organization. Jack is scheduled to begin work on 01-Feb-2007 as a Patient Care Manager.…
The following items are examples of what can be referenced in the Description; they MUST be referenced as follows:
<<eid.first_name>> - states the employee's first name
<<eid.last_name>> - states the employee's last name
<<eem.hire_date>> - states the employee's hire date
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation