public async Task <ProcessForecastResponse> ProcessForecastAsync(ProcessForecastRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); ProcessForecastHeaders headers = new ProcessForecastHeaders(); return(await ProcessForecastWithOptionsAsync(request, headers, runtime)); }
public ProcessForecastResponse ProcessForecast(ProcessForecastRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); ProcessForecastHeaders headers = new ProcessForecastHeaders(); return(ProcessForecastWithOptions(request, headers, runtime)); }
public async Task <ProcessForecastResponse> ProcessForecastWithOptionsAsync(ProcessForecastRequest request, ProcessForecastHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); Dictionary <string, object> body = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeptId)) { body["deptId"] = request.DeptId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.FormComponentValues)) { body["formComponentValues"] = request.FormComponentValues; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ProcessCode)) { body["processCode"] = request.ProcessCode; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.UserId)) { body["userId"] = request.UserId; } Dictionary <string, string> realHeaders = new Dictionary <string, string>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.CommonHeaders)) { realHeaders = headers.CommonHeaders; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.XAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = AlibabaCloud.TeaUtil.Common.ToJSONString(headers.XAcsDingtalkAccessToken); } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <ProcessForecastResponse>(await DoROARequestAsync("ProcessForecast", "workflow_1.0", "HTTP", "POST", "AK", "/v1.0/workflow/processes/forecast", "json", req, runtime))); }