/AWS1/CL_PP2CONDITIONALRULE¶
A single conditional rule that resolves to a field behavior when all of its conditions evaluate to true. Conditions within a rule are combined with logical AND: all conditions must match for the rule to fire.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_conditions TYPE /AWS1/CL_PP2FIELDCONDITION=>TT_FIELDCONDITIONLIST TT_FIELDCONDITIONLIST¶
The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.
iv_rulebehavior TYPE /AWS1/PP2CONDFIELDBEHAVIOR /AWS1/PP2CONDFIELDBEHAVIOR¶
The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
Optional arguments:¶
io_conditionalvalidation TYPE REF TO /AWS1/CL_PP2CONDVALIDATION /AWS1/CL_PP2CONDVALIDATION¶
Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.
Queryable Attributes¶
Conditions¶
The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CONDITIONS() |
Getter for CONDITIONS, with configurable default |
ASK_CONDITIONS() |
Getter for CONDITIONS w/ exceptions if field has no value |
HAS_CONDITIONS() |
Determine if CONDITIONS has a value |
RuleBehavior¶
The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RULEBEHAVIOR() |
Getter for RULEBEHAVIOR, with configurable default |
ASK_RULEBEHAVIOR() |
Getter for RULEBEHAVIOR w/ exceptions if field has no value |
HAS_RULEBEHAVIOR() |
Determine if RULEBEHAVIOR has a value |
ConditionalValidation¶
Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CONDITIONALVALIDATION() |
Getter for CONDITIONALVALIDATION |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_CONDITIONALRULELIST¶
TYPES TT_CONDITIONALRULELIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_PP2CONDITIONALRULE WITH DEFAULT KEY
.