Skip to main content

Name

msg.batch_id — Return the human-readable ec_message.batch_id

Synopsis

msg.batch_id;

Description

When used in a string context, or explicitly forced into a string via tostring(msg.batch_id), this function returns the human-readable ec_message.batch_id.

Enable this function with the statement require('msys.extended.message');.

require("msys.core");
require("msys.extended.message");

local mod = {};

function mod:validate_data(msg, ac, vctx)
  print(msg.batch_id);
  return msys.core.VALIDATE_CONT;
end

msys.registerModule("validate_data", mod);
Was this page helpful?