Scenario 5 - Creating a Sterling B2B Integrator Business Process
When you use Sterling B2B Integrator to copy a file from Sterling Connect:Direct®, you execute a Sterling B2B Integrator business process that contains Connect:Direct Server Adapter services to copy the file from Sterling Connect:Direct.
About this task
Use the following procedure to create 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.
- From the View menu, select Stencil > Applications > Sterling
Commerce > Connect:Direct.
This will add the Connect:Direct stencil to the GPM.
- From the File menu, select New to open a new business process.
- Drag and drop the following icons from the BPML and Connect:Direct
stencils into the Business Process window in the following order,
from left to right:
- Start
- CD Server Begin Session Service
- CD Server CopyFrom Service
- CD Server End Session Service
- End
- To link the icons:
Click the arrow on the right side of the Start icon and drag it to the arrow on the left side of the CD Server Begin Session 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 CD Server CopyFrom Service icon.
Click the arrow on the right side of the CD Server CopyFrom Service 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 End icon.
- Configure the Connect:Direct Server Begin Session Service
using the following procedure:
- Double-click the CD Server Begin Session Service icon. The Connect:Direct Server Begin Session Service functions like the Sterling Connect:Direct Process statement. It initiates a session on a specified remote Sterling Connect:Direct node.
- In the Service Editor-CD Server Begin Session Service window,
select CDServerBeginSession from the Config drop-down list. The Message
To Service tab is displayed. In this step specify the pre-defined
CDServerBeginSession configuration for the CD Server Begin Session
Service. You can override configuration values in the Service Editor.Note: To see all parameters available in the CopyFrom service, see Settings for Connect:Direct Server CopyFrom Service .
- Select your Connect:Direct Server Adapter node name as the Value for LocalCDNodeName.
- Type the remote Sterling Connect:Direct node name as the Value for RemoteCDNodeName.
- Type the Sterling Connect:Direct User ID as the Value for RemoteUserId.
- To add the Sterling Connect:Direct User ID to your Sterling Connect:Direct User Authorities, type the password for the Sterling Connect:Direct User ID as the Value for RemotePasswd. Select No as the Value for UsingObscuredPasswd.
- Click the Message From Service tab.
- Select Allow message write for Input Msg.
- Click Add and add the following information to the new
record:
- In the Name box, type BeginSessionResults.
- In the Value field, type *.
- Select the Use XPATH? check box.
- Configure the CD Server CopyFrom Service using the following
procedure:
Double-click the CD Server CopyFrom Service icon. This opens the Service Editor window.
The Connect:Direct Server CopyFrom Service functions like the Sterling Connect:Direct Copy statement. It copies a file from the SNODE to the PNODE.
In the Service Editor-CD Server CopyFrom Service window, select CDServerCopyFrom from the Config drop-down list.
In this step you specify the pre-defined CDServerCopyFrom configuration to use for the CD Server CopyFrom Service. You can override configuration values in the Service Editor.
Type the source file name as the Value for RemoteFileName.
This file must reside on the file system of the Sterling Connect:Direct node.
Type //BeginSessionResults/SessionToken/node() as the Value for SessionToken and select the Use XPATH? box.
The Session Token is created by the CD Server Begin Session Service and identifies the session that is established with the remote Sterling Connect:Direct node. The SessionToken value in the CD Server CopyFrom Service ensures that this service copies the file using the session initiated by the CD Server Begin Session Service.
- Configure the CD Server End Session Service using the following
procedure:
Double-click the CD Server End Session Service icon.
The CD Server End Session Service functions like the Sterling Connect:Direct Pend statement used on the Microsoft Windows and UNIX platforms. It terminates the session with the remote Sterling Connect:Direct node. If the CD Server End Session does not execute, the session remains open.
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.
- 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 Use Sterling B2B Integrator to Copy a File from Sterling Connect:Direct .