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));
        }
Example #2
0
 /// <inheritdoc />
 public async Task <bool> Approvaled(ApprovaleTaskCmd cmd)
 {
     return(await httpProxy.PostAsync <bool>($"{serviceUrl}/approvaled", cmd).ConfigureAwait(false));
 }