Scenario 4 - Creating a Sterling B2B Integrator Business Process
When you use Sterling B2B Integrator to copy a file to Sterling Connect:Direct®, you execute a Sterling B2B Integrator business process that contains Connect:Direct Server Adapter services to send the primary document to 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 CopyTo 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 CopyTo Service icon.
- Click the arrow on the right side of the CD Server CopyTo 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 CD 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 you specify the pre-defined CDServerBeginSession configuration for the CD Server Begin Session Service. You can override configuration values in the Service Editor.
- 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.
Note: You must 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 CopyTo Service using the following
procedure:
- Double-click the CD Server CopyTo Service icon. This opens the Service Editor window.
- The Connect:Direct Server CopyTo Service functions like the Sterling Connect:Direct Copy statement. It copies a file from the PNODE to the SNODE.
- In the Service Editor-CD Server CopyTo Service window, select CDServerCopyTo from the Config drop-down list.
- In this step you specify the pre-defined CDServerCopyTo configuration to use for the CD Server CopyTo Service. You can override configuration values in the Service Editor.
Note: To see all parameters available in the CopyTo service, see Settings for Connect:Direct Server CopyTo Service .- Type rpl as the Value for RemoteDISP.
- This is equivalent to DISP=RPL in a Sterling Connect:Direct Copy statement.
- Type the destination file name as the Value for RemoteFileName.
- 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 CopyTo 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 Connect:Direct Server End Session Service functions like the Sterling Connect:Direct End statement. It terminates the session with the remote Sterling Connect:Direct node. If the Connect:Direct 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 Connect:Direct 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: Sample Business Processes on the Sterling B2B Integrator Side, contains examples involving the basic scenario of copying a file to a remote Sterling Connect:Direct server from Sterling B2B Integrator.