private void btnOK_Click(object sender, EventArgs e) { ExecutionBlock task1 = new ExecutionBlock(); task1.name = "Origem"; ExecutionBlock task2 = new ExecutionBlock(); task2.name = "Destino"; Loop loop = new Loop(); loop.name = "Aguarda"; loop.excutionBlock = new ExecutionBlock(); loop.exitCondition = "Confirmado"; Decision decision = new Decision(); decision.name = "Valida"; decision.condition = "Validação OK"; decision.positiveResult = task1; decision.negativeResult = task2; Workflow workflow = new Workflow("Processo 1"); workflow.AddElement(task1); workflow.AddElement(task2); workflow.AddElement(decision); workflow.AddElement(loop); workflow.CreateRelation(task1, task2); workflow.CreateRelation(decision, loop); List <FlowElement> previousElements = workflow.GetPreviousElements(task2); List <FlowElement> nextElements = workflow.GetNextElements(decision); workflow.Store(); }
private void SyncDifferences(ExecutionBlock block) { var executor = new BlockExecutor(); executor.ExecuteBlock(block, destinationParms.Connection); }