Description
Using the constructor of AbstractStateMachine
public AbstractStateMachine(final SCXML stateMachine)
Invokes the following constructor:
public AbstractStateMachine(final SCXML stateMachine,
final Context rootCtx, final Evaluator evaluator)
And the initialize method.
private void initialize(final SCXML stateMachine,
final Context rootCtx, final Evaluator evaluator) {
engine = new SCXMLExecutor(evaluator, new SimpleDispatcher(),
new SimpleErrorReporter());
engine.setStateMachine(stateMachine);
engine.setSuperStep(true);
engine.setRootContext(rootCtx);
engine.addListener(stateMachine, new EntryListener());
try
catch (ModelException me)
{ logError(me); }}
Any exception raised in the "engine.go()" initial processing is captured and logged, but the log is not initialized properly.
First sentence in "initialise()" method should be:
log = LogFactory.getLog(this.getClass());