Document-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 {Document} document - document that is the input of the hook
@param {object} variables - object with workspace variables, containing for example security tokens
*/
module.exports = async ({api, workspaceId, document, variables}) => {
...
console.log('Script execution done.')
}
Updated over 3 years ago