When working with BPL, it is important to consider possible errors in Expression blocks. Any error that occurs during execution must be handled correctly to avoid disruptions in the business process.
To do this, follow these steps:
Draw an arrow to a new Result block from each Expression block.
Select Output Data Type → BPL Expression Error in the arrow properties.
Select Action Type → Arbitrary Result in the Result block properties.
Specify the BPL_ERROR result variable key in the Name field.
Specify the value of the variable {lastErrorNodeId} | {lastError} in the Value field. Where:
lastErrorNodeId — specifies the ID of the block in which the error occurred.lastError — indicates the error text.By following these instructions, you will ensure the stable operation of business processes and be able to quickly identify and analyze errors.