Exemplo n.º 1
0
        public Task <bool> Approvaled(ApprovaleTaskCmd cmd)
        {
            processEngine.CompleteApprovalTask(new CompleteTaskCmd
            {
                TaskId          = cmd.TaskId,
                LocalScope      = true,
                OutputVariables = new WorkflowVariable(cmd.Variables)
                {
                    [WorkflowVariable.GLOBAL_APPROVALED_VARIABLE] = true,
                    [WorkflowVariable.GLOBAL_APPROVALED_COMMENTS] = string.IsNullOrWhiteSpace(cmd.Comments) ? "同意" : cmd.Comments,
                }
            });

            return(Task.FromResult(true));
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public async Task <bool> Approvaled(ApprovaleTaskCmd cmd)
 {
     return(await httpProxy.PostAsync <bool>($"{serviceUrl}/approvaled", cmd).ConfigureAwait(false));
 }