SUCCESS

attribute := expression : SUCCESS(handler) ;

attributeThe name of the Attribute.
expressionThe definition of the attribute.
handlerThe action to run if the expression succeeds.

The SUCCESS service executes the handler Attribute when the expression succeeds. SUCCESS notionally executes in parallel with the successful return of the result. This service implicitly causes the attribute to be evaluated at global scope instead of the enclosing scope. Only available if workflow services are turned on (see #OPTION(workflow)).

Example:

  SPeople  := SORT(Person,Person.first_name);
  nUniques := COUNT(DEDUP(sPeople,Person.per_first_name AND
                   Person.address))
           : SUCCESS(Email.simpleSend(SystemsPersonel,
                    SystemsPersonel.email,'yeah.htm'));

See Also: FAILURE, RECOVERY