Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testExecutionListener()
        public virtual void testExecutionListener()
        {
//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 EmbeddedProcessApplicationAnonymousInnerClass3(this, eventCount);

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

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

            // 7 events received
            assertEquals(7, eventCount.get());
        }
Exemplo n.º 2
0
 public ExecutionListenerAnonymousInnerClass3(EmbeddedProcessApplicationAnonymousInnerClass3 outerInstance)
 {
     this.outerInstance = outerInstance;
 }