Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public void testIntermediateTimerEvent()
        public virtual void testIntermediateTimerEvent()
        {
            // given
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final java.util.List<String> timerEvents = new java.util.ArrayList<String>();
            IList <string> timerEvents = new List <string>();

            EmbeddedProcessApplication processApplication = new EmbeddedProcessApplicationAnonymousInnerClass9(this, timerEvents);

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

            // when
            runtimeService.startProcessInstanceByKey("process");
            string jobId = managementService.createJobQuery().singleResult().Id;

            managementService.executeJob(jobId);

            // then
            assertEquals(2, timerEvents.Count);

            // "start" event listener
            assertEquals([email protected]_Fields.EVENTNAME_START, timerEvents[0]);

            // "end" event listener
            assertEquals([email protected]_Fields.EVENTNAME_END, timerEvents[1]);
        }
Exemple #2
0
 public ExecutionListenerAnonymousInnerClass8(EmbeddedProcessApplicationAnonymousInnerClass9 outerInstance)
 {
     this.outerInstance = outerInstance;
 }