Time-based hooks
The function call running the Hook is:
/*
@param {OpenAPIClientAxios} api - API client to call Nedap Harmony APIs
@param {string} workspaceId - identifier of the current workspace, used in the APIs
@param {string} createdAt - moment in time the job was originally started
@param {object} variables - object with workspace variables, containing for example security tokens
*/
module.exports = async ({api, workspaceId, createdAt, variables}) => {
...
console.log('Script execution done.')
}
Updated over 3 years ago