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()); }
public ExecutionListenerAnonymousInnerClass2(EmbeddedProcessApplicationAnonymousInnerClass2 outerInstance) { this.outerInstance = outerInstance; }