public async Task <WorkFlowResult> GetFlowApprovalAsync(WorkFlowProcessTransition model) { var uri = API.WorkFlowInstance.GetFlowApprovalAsync(_baseUrl, model); var responseString = await _apiClient.GetStringAsync(uri); return(responseString.ToObject <WorkFlowResult>()); }
public async Task <WorkFlowResult> CreateInstanceAsync([FromBody] WorkFlowProcessTransition model) { model.UserId = UserIdentity.UserId.ToString(); model.UserName = UserIdentity.UserName; var res = await _workFlowInstanceService.CreateInstanceAsync(model); return(res); }
public async Task <WorkFlowResult> ProcessTransitionFlowAsync(WorkFlowProcessTransition model) { var uri = API.WorkFlowInstance.ProcessTransitionFlowAsync(_baseUrl); var content = new StringContent(JsonConvert.SerializeObject(model), System.Text.Encoding.UTF8, "application/json"); var response = await _apiClient.PostAsync(uri, content); response.EnsureSuccessStatusCode(); string res = await response.Content.ReadAsStringAsync(); return(JsonConvert.DeserializeObject <WorkFlowResult>(res)); }
public static string GetFlowApprovalAsync(string baseUri, WorkFlowProcessTransition model) { return($"{baseUri}/WorkFlowInstance/GetFlowApprovalAsync?{model.ToUrlParam()}"); }
public async Task <WorkFlowResult> GetFlowApprovalAsync([FromQuery] WorkFlowProcessTransition model) { model.UserId = UserIdentity.UserId.ToString(); return(await _workFlowInstanceService.GetFlowApprovalAsync(model)); }
public async Task <WorkFlowResult> ProcessTransitionFlowAsync([FromBody] WorkFlowProcessTransition model) { model.UserId = UserIdentity.UserId.ToString(); model.UserName = UserIdentity.UserName; return(await _workFlowInstanceService.ProcessTransitionFlowAsync(model)); }
public async Task <WorkFlowResult> CreateInstanceAsync([FromBody] WorkFlowProcessTransition model) { return(await _workFlowInstanceService.CreateInstanceAsync(model)); }
public async Task <WorkFlowResult> GetFlowApprovalAsync([FromQuery] WorkFlowProcessTransition model) { return(await _workFlowInstanceService.GetFlowApprovalAsync(model)); }