Package ai.confiqure
Annotation Type Confiqure.SectionGate
- Enclosing class:
Confiqure
Declarative flow gate on a whole nested section: ANY write at or under this field's path is
only permitted while the
requires() predicate is true over the root
instance's current values. Use it to lock an entire sub-object (e.g. a whole
billingDetails block) behind a prerequisite, instead of repeating Confiqure.Gate on
every leaf. Predicate grammar and semantics are identical to Confiqure.Gate.
@Confiqure.SectionGate(requires = "userAcceptedLegalTermsRisks == true",
message = "Accept the terms first, then we can set up your product interests.")
private InterestedProductCategories interestedProductCategories;
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionPredicate (seeConfiqure.Gate) that must hold before any field at or under this path may be written. -
Optional Element Summary
Optional Elements
-
Element Details
-
requires
String requiresPredicate (seeConfiqure.Gate) that must hold before any field at or under this path may be written. -
message
String messageOptional coaching shown to the conversation when the section gate blocks a write. Defaults to the predicate text.- Default:
""
-