use of org.camunda.bpm.application.ProcessApplicationInterface in project camunda-bpm-platform by camunda.
the class ScriptingEngines method getPaScriptEngine.
protected ScriptEngine getPaScriptEngine(String language, ProcessApplicationReference pa) {
try {
ProcessApplicationInterface processApplication = pa.getProcessApplication();
ProcessApplicationInterface rawObject = processApplication.getRawObject();
if (rawObject instanceof AbstractProcessApplication) {
AbstractProcessApplication abstractProcessApplication = (AbstractProcessApplication) rawObject;
return abstractProcessApplication.getScriptEngineForName(language, enableScriptEngineCaching);
}
return null;
} catch (ProcessApplicationUnavailableException e) {
throw new ProcessEngineException("Process Application is unavailable.", e);
}
}
use of org.camunda.bpm.application.ProcessApplicationInterface in project camunda-bpm-platform by camunda.
the class ScriptingEnvironment method getPaEnvScripts.
protected Map<String, List<ExecutableScript>> getPaEnvScripts(ProcessApplicationReference pa) {
try {
ProcessApplicationInterface processApplication = pa.getProcessApplication();
ProcessApplicationInterface rawObject = processApplication.getRawObject();
if (rawObject instanceof AbstractProcessApplication) {
AbstractProcessApplication abstractProcessApplication = (AbstractProcessApplication) rawObject;
return abstractProcessApplication.getEnvironmentScripts();
}
return null;
} catch (ProcessApplicationUnavailableException e) {
throw new ProcessEngineException("Process Application is unavailable.", e);
}
}
Aggregations