set_output()
to return values to subsequent blocks.@{message}
.Exception
to trigger the Error exit condition and route to error handling blocks.set_output
function.
Blueprint flow:
Exception
in your Python code. This allows you to route to error handling blocks when specific conditions are met.
Example:
Exception
occurs, the Python code block exits with the Error condition, allowing you to route to error handling blocks in your blueprint. You can access the error message in the next block by referencing the @{message}
variable.
main.py
fileresult
execution environment variable, you must use the set_output
function.
Anything that runs in the block but is not returned in the set_output
function does not get passed to the next block.
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Code | Code | Textarea | - | The code to be executed. | - | - |
Name | Field | Type | Description |
---|---|---|---|
Success | - | success | The event handler execution was successful. |
Error | - | error | The event handler execution wasn’t successful. |
@{result}
variable in the block that follows it in a blueprint. The output contains whatever value was passed to the set_output()
function.
Access the error message of a Python code block using the @{message}
variable in the block that follows it in a blueprint. The error message contains whatever value was passed to the raise Exception
function.