workflowAudit static method

Future<ResponseStatus> workflowAudit(
  1. String formId,
  2. List<String> numbers,
  3. int userId,
  4. String action,
)

The workfow audit which customs the options of audited action.

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. action The number of the audited item in the workfow node.

@return A response result by parsing json.

Implementation

static Future<ResponseStatus> workflowAudit(String formId, List<String> numbers, int userId, String action) async {
  var resp = await K3Client.getInstance().operate(
    WorkflowAuditParam.builder()
      .formId(formId)
      .numbers(numbers)
      .userId(userId)
      .actionResultId(action)
      .build()
  );
  return ResponseStatus.fromJson(resp);
}