Skip to main content

Function

The function module is where the app's behavior is defined. Other modules specify the function module that defines the actions to take.

Manifest example

modules:
function:
- key: item-before-save-function-key
handler: index.runItemBeforeSave
timeout: 30000

Properties

nametyperequireddescription
keyStringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
Regex: ^[a-zA-Z0-9_-]+$
handlerStringYesA pointer to the function responsible for handling invocations.
Expected format: file.function.
For example, index.runItemBeforeSave calls the runItemBeforeSave function defined in index.js in the app's src directory.
timeoutnumberNoThe maximum runtime, default is 30000 milliseconds