Init Stage
Initialise the devices and add default values
init(state)
{
let serial = glob.get('serial_' + client());
if (!serial) //if serial is not found, then create one
{
serial = chance.guid();
glob.set('serial_' + client(), serial);
}
state.serial = serial;
next();
}Last updated
Was this helpful?
