This
method initializes the behavioral mechanism and takes the initial
(default) transitions in the statechart before any events are processed.
After this call is completed, the statechart is set to the initial
configuration.
Note that startBehavior is
called on the thread that creates the reactive object; default transitions
are taken on the creator thread.
Note: Do not call
startBehavior within
the class
CTOR.
Signaturevirtual OMBoolean startBehavior();
ReturnsThe
method returns one of the following values:
- TRUE -
The behavior initialization
succeeded.
- FALSE - The behavior
initialization failed.
Notes- If you manually declare an instance (in user code),
it is your responsibility to explicitly invoke startBehavior; otherwise,
the object will not respond to events.
- The startBehavior method
executes
on the thread that invoked it (if the class is an active class, this
is not the class's thread).
- The startBehavior method
involves
execution of actions, and in esoteric cases might result in the destruction
of an instance.