Example #1
0
        protected internal virtual ScriptEngine getPaScriptEngine(string language, ProcessApplicationReference pa)
        {
            try
            {
                ProcessApplicationInterface processApplication = pa.ProcessApplication;
                ProcessApplicationInterface rawObject          = processApplication.RawObject;

                if (rawObject is AbstractProcessApplication)
                {
                    AbstractProcessApplication abstractProcessApplication = (AbstractProcessApplication)rawObject;
                    return(abstractProcessApplication.getScriptEngineForName(language, enableScriptEngineCaching));
                }
                return(null);
            }
            catch (ProcessApplicationUnavailableException e)
            {
                throw new ProcessEngineException("Process Application is unavailable.", e);
            }
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
//ORIGINAL LINE: protected javax.script.ScriptEngine getScriptEngineFromPa(final String name, final org.camunda.bpm.application.ProcessApplicationInterface processApplication)
        protected internal virtual ScriptEngine getScriptEngineFromPa(string name, ProcessApplicationInterface processApplication)
        {
            return(processEngineConfiguration.CommandExecutorTxRequired.execute(new CommandAnonymousInnerClass2(this, name, processApplication)));
        }
Example #3
0
 public CommandAnonymousInnerClass2(ScriptEngineCachingTest outerInstance, string name, ProcessApplicationInterface processApplication)
 {
     this.outerInstance      = outerInstance;
     this.name               = name;
     this.processApplication = processApplication;
 }
Example #4
0
 public virtual void postProcessApplicationUndeploy(ProcessApplicationInterface processApplication)
 {
 }