Example #1
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();
            }