system.kanoa.lot.createRouteInstance(lotId, routeId, userId)
Copies a route to the routeEvent table and links it with a lotId. This is the adjustable route to be used by the lot.
Parameters
lotId Integer: Id of the lot
routeId Integer: Id of the route. If routeId is None, we'll search for for a suitable route based on the itemId or itemClassId of the lot.
userId Integer
Returns
routeEventId Integer
message String None if success
Example
"lotId": 42,
"routeId": 7,
userId, 5
routeEventId, msg = system.kanoa.lot.createRouteInstance(lotId, routeId, userId)