SBM Orchestration Guide → Orchestration Procedures → Using the Scope, Throw, and Compensate Steps to Handle Faults From Web Services → Running the Fault Handling Process App → Tutorial: Running the ThrowAWF Project
In this exercise, you run the ThrowAWF Project in SBM Work Center.
To run the ThrowAWF Project:
The Submit transition form opens.
The ThrowAWF Project state form opens, and the text appears in the Title field.
The Submit transition form opens.
The ThrowOWF orchestration workflow is invoked. The data from the Title field is passed to the IsCompanyBluejay Decision step, which chooses a branch based on its rule. In this case, the data is not "Bluejay Bird Supply," so it selects the IsNotBlueJay branch and passes the data to the SerenaSampleTickerService Web service.
The Web service's GetTickerSymbol operation is invoked, and the Web service returns a ticker symbol for the company name that you typed in the Title field. The ticker symbol appears in the Description field of the state page.
The Submit transition form opens.
The ThrowAWF Project state form opens, and the text appears in the Title field.
The transition form between the Submit and TickerSymbol states opens.
The ThrowOWF orchestration workflow is invoked. The data from the Title field is passed to the IsCompanyBluejay Decision step, which chooses a branch based on its rule. In this case, the data in the Title field is not Bluejay Bird Supply, so it selects the IsNotBluejay branch and passes the data to the SerenaSampleTickerService Web service.
The Web service's GetTickerSymbol operation is invoked, and the Web service determines that the data is not valid. The Web service generates the GetTickerSymbolFault, which is caught by the GetTickerSymbolFault Catch branch.
The Catch branch passes the fault detail to the ReturnGetTickerSymbolFault Throw step, which throws a fault and the error text to the SBM Application Engine.
The SBM Application Engine stops the workflow and displays the following error message on the state form, below the transition buttons: Error occurred during web service invocation: No information is available for 'ZZZZ'. The companies listed on this service are 'Rob & Bert manufacturing', 'Aftabitorium', 'Meg N Ah Electric Co.', 'BlueJay Bird Supply', 'Jay Buck 2 Entertainment', and 'Carol Creations'. (The text after the colon is the fault detail.)
The Submit transition form opens.
The ThrowAWF Project state form opens, and the text appears in the Title field.
The Submit transition form opens.
The ThrowOWF orchestration workflow is invoked. The data from the Title field is passed to the IsCompanyBluejay Decision step, which chooses a branch based on its rule. In this case, the data is "Bluejay Bird Supply." The Decision step selects the IsBluejay branch and passes the data to the ReportBluejay Throw step, which throws a fault and the text mapped in the FaultString data element to the SBM Application Engine.
The SBM Application Engine stops the workflow and displays the following error on the state page, below the transition buttons: Error occurred during web service invocation: SOAPFaultCode: ns1:ERROR_BLUEJAYSOAP Fault String: Bluejay Bird Supply is a credit risk.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.