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

            EmbeddedProcessApplication processApplication = new EmbeddedProcessApplicationAnonymousInnerClass2(this, eventCount);

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

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

            assertEquals(5, eventCount.get());
        }
Exemplo n.º 2
0
 public ExecutionListenerAnonymousInnerClass2(EmbeddedProcessApplicationAnonymousInnerClass2 outerInstance)
 {
     this.outerInstance = outerInstance;
 }