*/
public void executeGlobalScript(final SCXMLExecutionContext exctx) throws ModelException {
Script globalScript = exctx.getStateMachine().getGlobalScript();
if ( globalScript != null) {
try {
globalScript.execute(exctx.getActionExecutionContext());
} catch (SCXMLExpressionException e) {
exctx.getInternalIOProcessor().addEvent(new TriggerEvent(TriggerEvent.ERROR_EXECUTION, TriggerEvent.ERROR_EVENT));
exctx.getErrorReporter().onError(ErrorConstants.EXPRESSION_ERROR, e.getMessage(), exctx.getStateMachine());
}
}