Skip to content

Commit 380de15

Browse files
committed
Update documentation on action-state
Issue: SWF-1688
1 parent 6e40e55 commit 380de15

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/reference/actions.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@
6060
6161
</flow>]]>
6262
</programlisting>
63+
<para>
64+
After the execution of each action, the action-state checks the result to see if matches a declared
65+
transition to another state. That means if more than one action is configured they are executed in
66+
an ordered chain until one returns a result event that matches a state transition out of the
67+
action-state while the rest are ignored. This is a form of the Chain of Responsibility (CoR) pattern.
68+
</para>
69+
<para>
70+
The result of an action's execution is typically the criteria for a transition out of this state.
71+
Additional information in the current RequestContext may also be tested as part of custom
72+
transitional criteria allowing for sophisticated transition expressions that reason on contextual
73+
state.
74+
</para>
75+
<para>
76+
Note also that an action-state just like any other state can have one more on-entry actions
77+
that are executed as a list from start to end.
78+
</para>
6379
</sect1>
6480
<sect1 xml:id="decision-state">
6581
<title>Defining decision states</title>

0 commit comments

Comments
 (0)