Class AgentRuleFlow
java.lang.Object
com.xebialabs.xlrelease.agentrules.AgentRuleFlow
The parsed "Then" half of an agent rule: author-defined outcome branches, each carrying an
ordered action list. Persisted as one versioned JSON document in the rule's
flow
property, authored by the Agent Rules builder UI:
{"v":1,"branches":[
{"outcome":"transient","actions":[{"type":"retryTask","mode":"auto","params":{"comment":"{{summary}}"}}]},
{"outcome":"otherwise","actions":[{"type":"comment","mode":"auto","params":{}}]}
]}
The author owns the outcome vocabulary: the dispatcher lists the branch names in the
instruction so the agent classifies into them, and anything unrecognized lands on the
OTHERWISE branch. A rule without a flow keeps the pre-flow behavior (the analysis
lands as a comment), so existing rules are untouched.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne action row: type, autonomy (auto vs propose), and templated parameters.static final classOne outcome branch: the author-chosen name and its ordered actions. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe branch for the agent's outcome, or the otherwise-branch, ornullfor neither.The named outcomes the agent may answer with — the instruction contract; excludesOTHERWISE.static AgentRuleFlowParses theflowproperty.
-
Field Details
-
OTHERWISE
Reserved branch name: the default when the agent's outcome matches no named branch.- See Also:
-
-
Method Details
-
parse
Parses theflowproperty. Returnsnull— meaning "no flow, default behavior" — for blank input, unparseable JSON, or a document without branches; a broken flow must degrade to the safe advise-only path, never to silence or to wrong actions. -
namedOutcomes
The named outcomes the agent may answer with — the instruction contract; excludesOTHERWISE. -
branchFor
The branch for the agent's outcome, or the otherwise-branch, ornullfor neither.
-