{
engine.eval(script);
}
catch (ScriptException e)
{
throw new ActivityUserException(e);
}
Invocable inv = (Invocable)engine;
ScriptActivity activity = inv.getInterface(ScriptActivity.class);
try
{
LOG.debug("Processing script");
activity.process(mInputs, mOutputs);
}
catch (Throwable e)
{
LOG.debug("Caught exception during processing: "
+ e.getClass().getName() + ": " + e.getMessage());
throw new ActivityUserException(e);
}
}