Scenario 6 - Editing the Business Process
In this scenario, you add an OnFault Group to handle errors in your business process.
About this task
Use the following procedure to edit the Sterling B2B Integrator business process:
Procedure
- Log in to Sterling B2B Integrator and launch the Graphical Process Modeler from the Home screen.
- Enter your Sterling B2B Integrator User ID and password in the Log In dialog box.
- If the BPML stencil is not visible in the GPM, navigate
to the View menu and select Stencil > BPML.
This will add the BPML stencil to the GPM.
- If the Connect:Direct stencil is not visible in the GPM,
navigate to the View menu and select Stencil > Applications > Sterling
Commerce > Connect:Direct.
This will add the Connect:Direct stencil to the GPM.
- From the File menu, select Open, navigate to the existing business process file and click Open.
- Drag and drop the following icons from the BPML stencil
into the Business Process window:
- Sequence Start
- OnFault Group
- Sequence End
- To arrange and link the icons:
Click the link between the CD Server Begin Session Service icon and CD Server CopyTo Service icon and press Delete to remove the link.
Place the Sequence Start icon between the CD Server Begin Session Service icon and the CD Server CopyTo Service icon.
Click the arrow on the right side of the CD Server Begin Session Service icon and drag it to the arrow on the left side of the Sequence Start icon.
Click the arrow on the right side of the Sequence Start icon and drag it to the arrow on the left side of the CD Server CopyTo Service icon.
Click the link between the CD Server End Session Service icon and End icon and press Delete to remove the link.
Place the Sequence End icon between the CD Server End Session Service icon and the End icon.
Click the arrow on the right side of the End Sequence icon and drag it to the arrow on the left side of the End icon.
Place the OnFault Group icon below and to the right of the Begin Sequence icon.
Click the arrow on the right side of the Begin Sequence icon and drag it to the arrow on the left side of the OnFault Group.
- Configure the OnFault Group using the following procedure:
- Double-click the OnFault Group icon. This opens the Property
Editor window and Layers window.
The OnFault element contains a fault handling activity. If an error occurs between the Sequence Start and Sequence End, the fault handling activity is invoked. In this example, the fault handling activity contains a CD Server End Session Service to ensure that the session ends if there is an error. If the OnFault Group is not included in this business process and an error occurs on the CD Server CopyTo Service, the business process would stop before the CD Server End Service and the session would stay active.
- In the Layers Window, click the Default icon to open the fault
handling activity in the business process window.
The business process window contains an OnFault Start icon and an OnFault End icon.
- Drag and drop the CD Server End Session icon from the Connect:Direct stencil into the Business Process window and place it between the OnFault Start icon and the OnFault End icon.
- Click the arrow on the right side of the OnFault Start icon and drag it to the arrow on the left side of the CD Server End Session Service icon.
- Click the arrow on the right side of the CD Server End Session Service icon and drag it to the arrow on the left side of the OnFault End icon.
Double-click the CD Server End Session Service icon.
In the Service Editor-CD Server End Session Service window, select CDServerEndSession from the Config drop-down list.
In this step you specify the pre-defined CDServerEndSession configuration to use for the CD Server End Session Service. You can override configuration values in the Service Editor.
Type //BeginSessionResults/SessionToken/node() as the Value for SessionToken and select the Use XPATH? box.
The SessionToken value in the CD Server End Session Service ensures that this service closes the session initiated by the CD Server Begin Session Service.
- Double-click the OnFault Group icon. This opens the Property
Editor window and Layers window.
- From the File menu, select Save. In the Validate dialog box, click Yes to validate the business process.
- On the Save dialog box, type your business
process file name in the File Name box and click Save. Remember where
you save this file. Note: To see a sample business process, refer to Add Error Handling to the Business Process.