TaskEntity task = (TaskEntity) taskForm.getTask();
return executeScript(formTemplateString, task.getExecution());
}
protected Object executeScript(String scriptSrc, VariableScope<?> scope) {
ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
ScriptingEnvironment scriptingEnvironment = processEngineConfiguration.getScriptingEnvironment();
ScriptFactory scriptFactory = processEngineConfiguration.getScriptFactory();
ExecutableScript script = scriptFactory.createScript(scriptSrc, ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE);
return scriptingEnvironment.execute(script, scope);
}