WAIT

WAIT(event)

eventA string constant containing the name of the event to wait for.

The WAIT action is similar to the WHEN workflow service, but may be used within conditional code.

Example:

  //You can either do this:
  action1;
  action2 : WHEN('expectedEvent');
  
  //can also be written as:
  SEQUENTIAL(action1,WAIT('expectedEvent'),action2);

See Also: EVENT, NOTIFY, WHEN, CRON