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
name | type | required | description |
---|---|---|---|
key | String | Yes | A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: ^[a-zA-Z0-9_-]+$ |
handler | String | Yes | A 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. |
timeout | number | No | The maximum runtime, default is 30000 milliseconds |