processEvent

The processEvent method is the main event consumption method. It handles the passing of events and triggered operations from the framework to the user-defined statechart, which then consumes them.
Visibility
Public

This method is called by the takeEvent and takeTrigger methods.

You can override processEvent to specialize different event consumption behaviors:

Signature
virtual TakeEventStatus processEvent (OMEvent* ev);
Parameters
ev

Specifies the event to be consumed

Returns

The method returns one of the values defined in the TakeEventStatus enumerated type. You can use these values to determine whether and how to continue with event processing on the reactive object.

The possible values are as follows:

Note: The processEvent method includes the ability to handle events and triggered operations that were not consumed. This is conceptually a callback method that you must override to define the actual handling of unconsumed events. To support this modification, the method signature was changed.

Feedback