STOP_COMMAND
Back to current versionRestore this version

STOP - Raise Exception#

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.

If not setup as a message number it throws a database exception that displays the brief text in Operand 1 along with the stack trace of where it came from.

To have a clean message create a message in IMMS starting with WF such as WF-00001.

In this sample before an employee can apply for any postings a phone number must be added to the profile. If no phone number is provided than the application will not be created and the candidate will be issued an exception containing the value of the message in Operand 1.

First step is to go to IMMS and create a new message. For our example well create one with the number WF-10001 and the message test of "Please Provide a contact number before applying".

Then on IMUC our sample Workflow usercalc would be added for WF_RAP and look like:

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 LETV PHONEEQNLDBRCA.PHONE_NUMBERA (999) 999-9999 00100
00100 IFVPHONEEQA(999) 999-9999 0020099999
00200 STOPA WF-10001 99999
99999 EXIT


Notes #

Click to create a new notes page