An assessment entered in the RAS_ID_SURVEYED field may be assigned to a candidate using workflow. The custom function 'P2k_CF_TDRASSURVEYED' is used in the workflow usercalc to create and assign the assessment. The workflow is triggered when the employee and/or candidate registers for a class. therefore the custom function is associated with the 'WF_CRSE' product. Below is an example of a usercalc.
Line | CMD | Type 1 | Operand 1 | Oper | Type 2 | Operand 2 | Type 3 | Operand 3 | If Goto | Else Goto |
---|---|---|---|---|---|---|---|---|---|---|
10 | IF | CF | INSERTING | EQ | B | TRUE | 20 | 99999 | ||
20 | IF | DB | CRS.RAS_ID_SURVEYED | GT | N | 0 | 30 | 99999 | ||
30 | IF | CF | P2K_CF_TDRASSURVEYED | EQ | B | TRUE | 99999 | 99999 | ||
99999 | EXIT |