Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void execute(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception
            public virtual void execute(DelegateExecution execution)
            {
                businessProcess.setVariable("processName", "throwSignal-visited (was " + businessProcess.getVariable("processName") + ")");

                string signalProcessInstanceId = (string)execution.getVariable("signalProcessInstanceId");
                string executionId             = runtimeService.createExecutionQuery().processInstanceId(signalProcessInstanceId).signalEventSubscriptionName("alert").singleResult().Id;

                runtimeService.signalEventReceived("alert", executionId);
            }
Example #2
0
        /// <summary>
        /// Verifies the solution of https://jira.codehaus.org/browse/ACT-1309
        /// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment @Test public void testSignalBoundaryOnSubProcess()
        public virtual void testSignalBoundaryOnSubProcess()
        {
            ProcessInstance pi = runtimeService.startProcessInstanceByKey("signalEventOnSubprocess");

            runtimeService.signalEventReceived("stopSignal");
            testRule.assertProcessEnded(pi.ProcessInstanceId);
        }