public BeginTaskResponseModel BeginTask(Guid processID, List <QueryModel> baseQueryModel)
        {
            string url = UrlUtility.GetApiUrl(this.BaseApiUrl, "BeginTask", "EngineProcess", this.Token, new string[] { "processID=" + processID.ToStringObj() });
            BeginTaskResponseModel beginTaskResponseVM = ApiUtility.PostData <BeginTaskResponseModel>(url, baseQueryModel, this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            return(beginTaskResponseVM);
        }
Example #2
0
        public PostFormResponseModel PostForm(Guid applicationPageId, string controlId, List <QueryModel> baseQueryModel)
        {
            string url = UrlUtility.GetApiUrl(this.BaseApiUrl, "PostForm", "EngineApplication", this.Token,
                                              $"applicationPageId={applicationPageId.ToStringObj()}",
                                              $"controlId={controlId}");
            PostFormResponseModel postFormResponseModel = ApiUtility.PostData <PostFormResponseModel>(url, baseQueryModel, this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            return(postFormResponseModel);
        }
        public PostTaskFormResponseModel PostForm(Guid threadTaskID, Guid formID, string controlId, List <QueryModel> baseQueryModel)
        {
            string url = UrlUtility.GetApiUrl(this.BaseApiUrl, "PostForm", "EngineProcess", this.Token,
                                              $"threadTaskID={threadTaskID.ToStringObj()}",
                                              (string.IsNullOrWhiteSpace(controlId) ? "" : $"controlId={controlId}"),
                                              ($"formID={formID}"));
            PostTaskFormResponseModel postTaskFormResponseModel = ApiUtility.PostData <PostTaskFormResponseModel>(url, baseQueryModel, this.Token, this.UserName, this.ClientIp, this.ClientId, this.IsEncrypted);

            return(postTaskFormResponseModel);
        }