AIML Docs

Workflow

The base element for all workflows

Workflow

The <workflow> element is the root container for a state machine:

<workflow name="myWorkflow" initial="start" version="1.0">
<state id="start">
  <transition target="processing" />
</state>
 
<state id="processing">
  <transition target="final" />
</state>
 
<final id="final" />
</workflow>
PropTypeDefault
name?
string
-
initial?
string
-
version?
string
-

Allowed Children

  • state: States
  • parallel: Parallel states
  • final: Final states
  • datamodel: Data model declarations
  • initial: Initial transition

Initial Element

The <initial> element represents the default initial state:

<workflow>
<initial>
  <transition target="firstState" />
</initial>
 
<state id="firstState">
  <!-- ... -->
</state>
</workflow>

History Element

The <history> element represents a history pseudo-state:

<state id="parent">
<history id="hist" type="deep">
  <transition target="default" />
</history>
 
<state id="s1" />
<state id="s2" />
<state id="default" />
</state>
PropTypeDefault
id?
string
-
type?
string
-

On this page