The INVOKE action executes an Amazon Web Services (AWS) Lambda function.
Use this action when a process needs to run custom business logic, perform data transformations, integrate with external services, or execute serverless code hosted in AWS Lambda.
The action sends a request to AWS Lambda containing the Lambda function name and an optional JSON payload. AWS Lambda executes the function and returns the results, including the response payload, execution status, and any generated logs. The returned values can be mapped to process variables and used by subsequent tasks, gateways, forms, process decision logic and others. This allows Lambda functions to contribute data and business logic to the overall workflow.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| function | String | Required | The name of the AWS Lambda function to invoke. Example: lambda-2. |
| payload | JSON | Optional | A JSON object passed to the Lambda function as input. The structure depends on the requirements of the function being invoked. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| lambdaPayload | JSON | Optional | The response payload returned by the Lambda function. The contents depend on the implementation of the function. |
| lambdaStatus | Integer | Optional | The status code returned by the Lambda invocation. Use this value to determine whether the function executed successfully. |
| lambdaLog | String | Optional | Execution log information generated during the Lambda function invocation. This value can be useful when troubleshooting function execution issues. |