Пример #1
0
        public virtual void testSingleNonScopeActivity()
        {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method:
            Deployment(ESS.FW.Bpm.Model.Bpmn.Bpmn.CreateExecutableProcess("testProcess")
                .StartEvent()
                .ServiceTask()
                .CamundaClass(typeof(AssertingJavaDelegate).FullName)
                .EndEvent()
                .Done());

            AssertingJavaDelegate.AddAsserts(new DelegateExecutionAsserterAnonymousInnerClass(this));

            runtimeService.StartProcessInstanceByKey("testProcess");
        }
Пример #2
0
        public virtual void testConcurrentServiceTasks()
        {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method:
            Deployment(ESS.FW.Bpm.Model.Bpmn.Bpmn.CreateExecutableProcess("testProcess")
                .StartEvent()
                .ParallelGateway("fork")
                .ServiceTask()
                .CamundaClass(typeof(AssertingJavaDelegate).FullName)
                .ParallelGateway("join")
                .EndEvent()
                //.MoveToNode("fork")
                .ServiceTask()
                .CamundaClass(typeof(AssertingJavaDelegate).FullName)
                //.connectTo("join")
                .Done());

            AssertingJavaDelegate.AddAsserts(new DelegateExecutionAsserterAnonymousInnerClass2(this));

            runtimeService.StartProcessInstanceByKey("testProcess");
        }
Пример #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override protected void tearDown() throws Exception
        protected internal void tearDown()
        {
            AssertingJavaDelegate.Clear();
            TearDown();
        }