Exemple #1
0
        public async Task <WorkFlowProcess> GetProcessForSystemAsync(SystemFlowDto process)
        {
            var uri            = API.WorkFlowInstance.GetProcessForSystemAsync(_baseUrl, process);
            var responseString = await _apiClient.GetStringAsync(uri);

            return(responseString.ToObject <WorkFlowProcess>());
        }
        public async Task <IViewComponentResult> InvokeAsync(SystemFlowDto model)
        {
            model.UserId = HttpContext.User.ToUserIdentity().UserId.ToString();
            var process = await workFlowInstanceService.GetProcessForSystemAsync(model);

            process.FormContent = model.PageId;
            return(View(process));
        }
Exemple #3
0
 public static string GetProcessForSystemAsync(string baseUri, SystemFlowDto model)
 => $"{baseUri}/WorkFlowInstance/GetProcessForSystemAsync?PageId=" + model.PageId + "&UserId=" + model.UserId + "&FormUrl=" + HttpUtility.UrlEncode(model.FormUrl);
 public async Task <WorkFlowProcess> GetProcessForSystemAsync([FromQuery] SystemFlowDto model)
 {
     return(await _workFlowInstanceService.GetProcessForSystemAsync(model));
 }