/// <summary> /// 构造并且发送任务到任务列表中 /// </summary> /// <param name="processID"></param> /// <param name="cancelAllBranchProcesses"></param> /// <returns></returns> public static DispatchCancelProcessTask SendTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses) { DispatchCancelProcessTask task = CreateTask(ownerSysActivityID, processID, cancelAllBranchProcesses); InvokeServiceTaskAdapter.Instance.Update(task); return(task); }
public static DispatchCancelProcessTask CreateTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses) { DispatchCancelProcessTask task = new DispatchCancelProcessTask(ownerSysActivityID, processID, cancelAllBranchProcesses); task.TaskID = UuidHelper.NewUuidString(); task.ResourceID = processID; task.TaskTitle = string.Format("分发作废流程{0}的任务", processID); return(task); }
public static DispatchCancelProcessTask CreateTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses) { DispatchCancelProcessTask task = new DispatchCancelProcessTask(ownerSysActivityID, processID, cancelAllBranchProcesses); task.TaskID = UuidHelper.NewUuidString(); task.ResourceID = processID; task.TaskTitle = string.Format("分发作废流程{0}的任务", processID); return task; }