Tutorial: Running the ThrowAWF Project

Prerequisites:

You performed the steps in Tutorial: Practicing With the Throw Step.

In this exercise, you run the ThrowAWF Project in the SBM User Workspace.

To run the ThrowAWF Project:

  1. Log on to the SBM User Workspace.
  2. Select the FaultHandlingApp tab.

    If the FaultHandlingApp tab is not visible, click the More tab, and then select FaultHandlingApp in the list.

  3. If Submit View appears in the navigation pane, click Submit to my Preferred Projects. Otherwise, click the Submit View icon at the bottom of the navigation pane.
  4. In the Submit Tree, click ThrowAWF Project.

    The Submit transition form opens.

  5. In the Title field, type one of the company names from the table in SerenaSampleTickerService Company Names and Ticker Symbols, except Bluejay Bird Supply, and then click OK.

    The ThrowAWF Project state form opens, and the text appears in the Title field.

  6. Click GetTickerSymbol.

    The Submit transition form opens.

  7. Click OK.

    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.

  8. In the navigation pane, click Submit to my Preferred Projects.
  9. In the Submit Tree, click ThrowAWF Project.

    The Submit transition form opens.

  10. In the Title field, type some text, such as ZZZZ. (Do not use any of the company names from the table in SerenaSampleTickerService Company Names and Ticker Symbols, including Bluejay Bird Supply.) Click OK.

    The ThrowAWF Project state form opens, and the text appears in the Title field.

  11. Click GetTickerSymbol.

    The transition form between the Submit and TickerSymbol states opens.

  12. Click OK.

    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.)

  13. In the navigation pane, click Submit to my Preferred Projects.
  14. In the Submit Tree, click ThrowAWF Project.

    The Submit transition form opens.

  15. In the Title field, type Bluejay Bird Supply, and then click OK.

    The ThrowAWF Project state form opens, and the text appears in the Title field.

  16. Click GetTickerSymbol.

    The Submit transition form opens.

  17. Click OK.

    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.

Related Topics

Tutorial: Practicing With the Throw Step