String message = "Evaluation error while running BSH script";
String message = "Evaluation error while running BSH function script";
    public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {        String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT);        Interpreter i = null;        ClassLoader loader = null;        WorkflowContext context = (WorkflowContext) transientVars.get("context");        WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry");        loader = Thread.currentThread().getContextClassLoader();        try {            i = new Interpreter();            if (loader != null) {                i.setClassLoader(loader);            }            i.set("entry", entry);            i.set("context", context);            i.set("transientVars", transientVars);            i.set("propertySet", ps);        } catch (EvalError evalError) {            String message = "Could not set values for BSH script";            log.error(message, evalError);            throw new WorkflowException(message, evalError);        }        try {            i.eval(script);        } catch (EvalError evalError) {            String message = "Evaluation error while running BSH script";            log.error(message, evalError);            throw new WorkflowException(message, evalError);        } finally {            if ((i != null) && (loader != null)) {                i.setClassLoader(null);            }        }    }