Exemplo n.º 1
0
        /// <summary>
        /// 获取指定Id表单数据
        /// </summary>
        /// <returns></returns>
        public ActionResult GetById()
        {
            Guid            Id = QuestRequest.GetGuid("Id");
            OperationResult or = WFFormService.GetByKey(Id);

            return(this.JsonFormat(or));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取指定流程Id的首步骤的表单信息
        /// </summary>
        /// <returns>返回操作结果</returns>
        public OperationResult ProcessFirstStep(Guid wfId)
        {
            // 根据指定参数启动流程
            WorkflowApplication instance = new WorkflowApplication();
            OperationResult     or       = instance.ProcessFirstStep(wfId);

            if (or.ResultType == OperationResultType.Success)
            {
                Step step = or.AppendData as Step;
                or = WFFormService.GetByKey(step.FormId.GetGuid());
            }
            return(or);
        }