Ejemplo n.º 1
0
            public void Execute(IBaseDelegateExecution execution)
            {
                var executionManager = Context.CommandContext.ExecutionManager;
                var execution1       = executionManager.FindExecutionById(EntityId1);
                var execution2       = executionManager.FindExecutionById(EntityId2);

                executionManager.DeleteExecution(execution1);
                executionManager.DeleteExecution(execution2);

                ExecutionThreadControl.Sync();
            }
Ejemplo n.º 2
0
            public void Execute(IBaseDelegateExecution execution)
            {
                var executionManager = Context.CommandContext.ExecutionManager;
                var execution1       = executionManager.FindExecutionById(EntityId1);
                var execution2       = executionManager.FindExecutionById(EntityId2);

                // revert the references
                execution2.SetParent(null);
                execution1.SetParent(execution2);

                ExecutionThreadControl.Sync();
            }
Ejemplo n.º 3
0
            //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
            //ORIGINAL LINE: @Override public void Execute(org.Camunda.bpm.Engine.Delegate.IDelegateExecution execution) throws Exception
            public void Execute(IBaseDelegateExecution execution)
            {
                var execution1 = new ExecutionEntity();

                execution1.Id = EntityId1;
                execution1.SetExecutions(new List <IActivityExecution>());

                var execution2 = new ExecutionEntity();

                execution2.Id = EntityId2;
                execution2.SetExecutions(new List <IActivityExecution>());
                execution2.SetParent(execution1);

                var executionManager = Context.CommandContext.ExecutionManager;

                executionManager.InsertExecution(execution1);
                executionManager.InsertExecution(execution2);

                ExecutionThreadControl.Sync();
            }