State machine events

Events are sent to state machine through methods of the context generated class.

The events methods can have any kind and any number of parameters.

Each parameter have a name and a type.

Every existing class can be an event parameter, parameters do NOT need to inherit from an "EventBase" class.

Events can be declared either inside or outside the state machine description.

Internally declared events

Here is the example of internally declared events with external class as event parameter

The AcsConnection class present in AcsConnection.h is included with the include element.

Externally declared events

When the event list is shared among many state machines, including the same set of events in each state machine would be a maintenance nightmare. The list of events can be imported from an external file thanks the XInclude technology