예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test @OperateOnDeployment("test1") public void testNonExistingEngineRetrieval()
        public virtual void testNonExistingEngineRetrieval()
        {
            ProcessEngineService engineService = BpmPlatform.ProcessEngineService;
            ProcessEngine        engine        = engineService.getProcessEngine("aNonExistingEngineName");

            Assert.assertNull(engine);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setEngines()
        public virtual void setEngines()
        {
            ProcessEngineService engineService = BpmPlatform.ProcessEngineService;

            engine1 = engineService.getProcessEngine("engine1");
            engine1Configuration = ((ProcessEngineImpl)engine1).ProcessEngineConfiguration;
        }
예제 #3
0
        public virtual ProcessEngine processEngine(InjectionPoint ip)
        {
            ProcessEngineName annotation        = ip.Annotated.getAnnotation(typeof(ProcessEngineName));
            string            processEngineName = annotation.value();

            if (string.ReferenceEquals(processEngineName, null) || processEngineName.Length == 0)
            {
                throw new ProcessEngineException("Cannot determine which process engine to inject: @ProcessEngineName must specify the name of a process engine.");
            }
            try
            {
                ProcessEngineService processEngineService = BpmPlatform.ProcessEngineService;
                return(processEngineService.getProcessEngine(processEngineName));
            }
            catch (Exception e)
            {
                throw new ProcessEngineException("Cannot find process engine named '" + processEngineName + "' specified using @ProcessEngineName: " + e.Message, e);
            }
        }
예제 #4
0
 public virtual ProcessEngine getProcessEngine(string name)
 {
     return(processEngineServiceDelegate.getProcessEngine(name));
 }