From e4baa30f7b8c5dfa0b5aee659026f8a66c8fa994 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 25 May 2017 14:19:56 -0400 Subject: [PATCH] Update documentation on action-state Issue: SWF-1688 --- src/reference/actions.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/reference/actions.xml b/src/reference/actions.xml index 67ccb1af..e6bc3dde 100644 --- a/src/reference/actions.xml +++ b/src/reference/actions.xml @@ -60,6 +60,22 @@ ]]> + + After the execution of each action, the action-state checks the result to see if matches a declared + transition to another state. That means if more than one action is configured they are executed in + an ordered chain until one returns a result event that matches a state transition out of the + action-state while the rest are ignored. This is a form of the Chain of Responsibility (CoR) pattern. + + + The result of an action's execution is typically the criteria for a transition out of this state. + Additional information in the current RequestContext may also be tested as part of custom + transitional criteria allowing for sophisticated transition expressions that reason on contextual + state. + + + Note also that an action-state just like any other state can have one more on-entry actions + that are executed as a list from start to end. + Defining decision states