Class Case (1.17.1)

Case(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.


condition str
The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters][Form.parameters] or [session parameters][SessionInfo.parameters]. See the `conditions reference
case_content MutableSequence[]
A list of case content.



CaseContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The list of messages or conditional cases to activate for this case.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: