Beispiel #1
0
        public virtual void testShouldInvokeExecutionListenerOnStartAndEndOfProcessInstance()
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final java.util.concurrent.atomic.AtomicInteger processDefinitionEventCount = new java.util.concurrent.atomic.AtomicInteger();
            AtomicInteger processDefinitionEventCount = new AtomicInteger();

            EmbeddedProcessApplication processApplication = new EmbeddedProcessApplicationAnonymousInnerClass(this, processDefinitionEventCount);

            // register app so that it receives events
            managementService.registerProcessApplication(deploymentId, processApplication.Reference);

            // Start process instance.
            runtimeService.startProcessInstanceByKey("startToEnd");

            // Start and end of the process
            assertEquals(2, processDefinitionEventCount.get());
        }
Beispiel #2
0
 public ExecutionListenerAnonymousInnerClass(EmbeddedProcessApplicationAnonymousInnerClass outerInstance)
 {
     this.outerInstance = outerInstance;
 }