Methods / Methods for Process Instances |
IWFWorkflowService svc = GetWorkflowService(); WFProcessMigrationInstruction pmi = new WFProcessMigrationInstruction(); // some code... svc.MigrateProcInst(pmi, currentProcessInstanceID, null); // some more code...
IWFWorkflowService svc = GetWorkflow(); string processInstanceID = "DB50CFEFDE464A78AAAA9BD7D6E6D9D0"; WFProcessMigrationInstruction pmi = new WFProcessMigrationInstruction(); //add the correct CurrentActivityUniqueName string currentActivityUniqueName = "BudgetRequest"; //add the correct TargetActivityUniqueName string targetActivityUniqueName = "BudgetRequestNew"; bool bCurrentActivated = false; pmi.AddMatchingActivity(currentActivityUniqueName,targetActivityUniqueName, bCurrentActivated); svc.MigrateProcInst(pmi, currentProcessInstanceID, null);