Exemplo n.º 1
0
        public string RecallAction(string UserId, string ProcInstID, string ActionName, string Comment)
        {
            string result = "";

            try
            {
                WorkflowFacade workfacade = new WorkflowFacade();
                WorklistItem   worklist   = workfacade.GetWorklistItemsWithRecallByProcess(UserId, ProcInstID, "Applicant Recall");
                if (worklist != null)
                {
                    workfacade.ExecuteAction(UserId, worklist.SN, ActionName, Comment);
                    result = "Success";
                }
                else
                {
                    result = "Failed";
                    throw new System.ArgumentException("Unable to recall the task");
                }
            }
            catch (Exception ex)
            {
                result = "Failed";
                throw ex;
            }

            return(result);
        }