Support actions with transition via choice/junction pseudostate

- Adding support for javaconfig/uml to define
  actions for transitions leading out from a
  choice or junction states.
- Support for action for incoming transition is
  already implemented as it is defined as normal
  transition.
- Fixes #108
This commit is contained in:
Janne Valkealahti
2017-05-05 14:40:00 +01:00
parent c0cb4dee44
commit cec0d24035
21 changed files with 1665 additions and 35 deletions

View File

@@ -329,6 +329,23 @@ Otherwise configuration is ill-formed.
include::samples/DocsConfigurationSampleTests.java[tags=snippetS]
----
Actions can be executed with both incoming and outgoing transitions of
a choice pseudostate. As seeing from below example, one dummy lambda
action is defined leading into a choice state and one similar dummy
lambda action defined for one outgoing transition where it also
define an error action.
[source,java,indent=0]
----
include::samples/DocsConfigurationSampleTests.java[tags=snippetSSS]
----
[NOTE]
====
Junction have same api format meaning actions can be defined
similarly.
====
[[statemachine-config-states-junction]]
==== Junction State
Junction needs to be defined in both states and transitions to work