/// <summary>
        /// 构造并且发送任务到任务列表中
        /// </summary>
        /// <param name="ownerActivityID"></param>
        /// <param name="template"></param>
        /// <param name="autoAddExitMaintainingStatusTask"></param>
        /// <returns></returns>
        public static DispatchStartBranchProcessTask SendTask(string ownerActivityID, IWfBranchProcessTemplateDescriptor template, bool autoAddExitMaintainingStatusTask)
        {
            DispatchStartBranchProcessTask task = CreateTask(ownerActivityID, template, autoAddExitMaintainingStatusTask);

            InvokeServiceTaskAdapter.Instance.Update(task);

            return(task);
        }
		public static DispatchStartBranchProcessTask CreateTask(string ownerActivityID, IWfBranchProcessTemplateDescriptor template, bool autoAddExitMaintainingStatusTask)
		{
			DispatchStartBranchProcessTask task = new DispatchStartBranchProcessTask(ownerActivityID, template, autoAddExitMaintainingStatusTask);

			task.TaskID = UuidHelper.NewUuidString();
			task.ResourceID = ownerActivityID;
			task.TaskTitle = string.Format("分发活动点{0}的子流程", ownerActivityID);

			return task;
		}
        public static DispatchStartBranchProcessTask CreateTask(string ownerActivityID, IWfBranchProcessTemplateDescriptor template, bool autoAddExitMaintainingStatusTask)
        {
            DispatchStartBranchProcessTask task = new DispatchStartBranchProcessTask(ownerActivityID, template, autoAddExitMaintainingStatusTask);

            task.TaskID     = UuidHelper.NewUuidString();
            task.ResourceID = ownerActivityID;
            task.TaskTitle  = string.Format("分发活动点{0}的子流程", ownerActivityID);

            return(task);
        }