An assessment entered in the RAS_ID_TESTED field may be assigned to a candidate using workflow. The custom function 'P2k_CF_TDRASTESTED' 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.

LineCMDType 1Operand 1OperType 2Operand 2Type 3Operand 3If
Goto
Else
Goto
10IFCFINSERTINGEQBTRUE 2099999
20IFDBCRS.RAS_ID_TESTEDGTN0 30 99999
30IFCFP2K_CF_TDRASTESTEDEQBTRUE 99999 99999
99999EXIT


Notes #

With D52050 regenerates MISC too, need the new version of P2K_PPUPRLU and P2K_PEGEN

I am not sure why the link got me to another procedure(Internal.P2K_CF_TDRASTESTED) then P2K_CF_PAYRULE!!!!#