Rule Actions

Actions identify the functional behaviour that the rule enforces.

  • ACCEPT (BOOLEAN) If the expression is true, the field value is considered accepted without further testing. Immediately following SET expressions MUST be executed. If the expression is false, following validation expressions MUST be executed. If the expression is ERROR (evaluation failed) in client, the client SHOULD act as if the field was accepted, allowing the server to make the final decision.
  • REJECT (BOOLEAN) If the expression is true, the field value is considered rejected without further testing. Subsequent SET expressions MUST NOT be evaluated. If the expression is false, following validation expressions MUST be executed. If the expression is ERROR, evaluation failed in client, the client SHOULD act as if the field was accepted, allowing the server to make the final decision.
  • WARNING (BOOLEAN) If the expression is true, the client should show a warning message to the user, and if the warning is okayed by the user, include a Warning-Response in the UPDATE request. If the user does not okay the warning, the field is considered rejected and following SET validation expressions MUST NOT be evaluated.If the expression is false, the following validation expressions MUST be evaluated.
  • SET (TYPEOF(EXP)) The expression MUST begin with a field name and an equal sign ("="). The following expression is evaluated and the result stored in the designated field.
  • SET_DEFAULT (TYPEOF(EXP)) This expression MUST be executed ONLY when a NEW record is created. Supersedes the default value as indicated in the Update Metadata.
  • SET_REQUIRED (BOOLEAN) Expressions of this type are designed to evaluate an expression and set the field that the rule is applied on to Required if the expression returns true and to Non Required if the expression returns false.
  • SET_READ_ONLY (BOOLEAN) Expressions of this type are designed to evaluate an expression and set the field that the rule is being applied on to Read Only if the expression returns true and to Updateable if the expression returns false. The client application is expected to lock the value of the field the rule is being executed on to the value at the time the SET_REQUIRED expression is evaluated.
  • RESTRICT_PICKLIST (List of CHAR) Expressions of this type are designed to return one or more LOOKUP values that are to be removed from the LOOKUP list that is defined for the field the rule is being executed on. This is always the entire set of values to remove from the lookup. In other words, if this returns a blank list or .EMPTY., the entire set of LOOKUP values is to be displayed. The value of this expression MUST be a , rather than , as defined in 11.4.9.1. All members of the list MUST be of the same type as the type of the field the rule is being executed on.
  • SET_PICKLIST (List of CHAR) Expressions of this type are designed to return one or more LOOKUP values that are to be used in the LOOKUP list that is defined for the field the rule is being executed on. The value of this expression MUST be a , rather than , as defined in 11.4.9.1. Every member of the list MUST exist in the Lookup list as defined in the metadata for the field the rule is being executed on.
  • SET_DISPLAY (BOOLEAN) Expressions of this type are designed to allow a client to make fields visible or invisible based on the evaluation of an expression. The result of this expression has no effect on whether a field is READ ONLY or not.