simpleWorkflowAudit static method

Future<ResponseStatus> simpleWorkflowAudit(
  1. String formId,
  2. List<String> numbers,
  3. int userId,
  4. ApprovalType approval,
)

Simple workfow audit.

formId The formId of the bill or basedata. numbers The billnos of bills or the numbers of basedatas. userId The auditor's user ID of current workflow node. approvalType The approval type

@return A response result by parsing json.

Implementation

static Future<ResponseStatus> simpleWorkflowAudit(String formId, List<String> numbers, int userId, ApprovalType approval) async {
  var resp = await K3Client.getInstance().operate(
    WorkflowAuditParam.builder()
      .formId(formId)
      .numbers(numbers)
      .userId(userId)
      .approvalType(approval.index+1)
      .build()
  );
  return ResponseStatus.fromJson(resp);
}