Esempio n. 1
0
        /// <summary>
        /// 构造并且发送任务到任务列表中
        /// </summary>
        /// <param name="processID"></param>
        /// <param name="cancelAllBranchProcesses"></param>
        /// <returns></returns>
        public static DispatchWithdrawProcessTask SendTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses)
        {
            DispatchWithdrawProcessTask task = CreateTask(ownerSysActivityID, processID, cancelAllBranchProcesses);

            InvokeServiceTaskAdapter.Instance.Update(task);

            return(task);
        }
		public static DispatchWithdrawProcessTask CreateTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses)
		{
			DispatchWithdrawProcessTask task = new DispatchWithdrawProcessTask(ownerSysActivityID, processID, cancelAllBranchProcesses);

			task.TaskID = UuidHelper.NewUuidString();
			task.ResourceID = processID;
			task.TaskTitle = string.Format("撤回流程{0}", processID);

			return task;
		}
Esempio n. 3
0
        public static DispatchWithdrawProcessTask CreateTask(string ownerSysActivityID, string processID, bool cancelAllBranchProcesses)
        {
            DispatchWithdrawProcessTask task = new DispatchWithdrawProcessTask(ownerSysActivityID, processID, cancelAllBranchProcesses);

            task.TaskID     = UuidHelper.NewUuidString();
            task.ResourceID = processID;
            task.TaskTitle  = string.Format("撤回流程{0}", processID);

            return(task);
        }