The BusinessEvents rule Language includes an Exception type that has try/catch/finally commands to handle exceptions. The try/catch/finally commands behave like their same-name Java counterparts.
Advisory Events You can also use the special AdvisoryEvent event type to be notified of exceptions that originate in user code but that are not caught with the catch command. To use the AdvisoryEvent, click the plus sign used to add a resource to the declaration. AdvisoryEvent is always available in the list of resources.
When using the catch command, assignment of the Exception type is mandatory, and you are limited to one catch block.
//If readStatus throws an exception,
//ScoreCard.status will be set to "default status"
//If readStatus throws an exception,
//ScoreCard.status will be set to "default status"
//Otherwise ScoreCard.status will be set to the
//return value of readStatus()
//If readStatus throws an exception,
//ScoreCard.status will be set to "default status"
//Otherwise ScoreCard.status will be set to the
//return value of readStatus()
Copyright © TIBCO Software Inc. All Rights Reserved.