In this scenario, you replace the CD Server Run Job Service with the CD Server Run Task Service in your business process. The business process copies a file to the Sterling Connect:Direct® server and then starts a Sterling Connect:Direct Run Task on that server. The business process waits for the Run Task to complete before the CD Server End Session Service terminates the Sterling Connect:Direct session.
About this task
The Run Task in this scenario is for a Sterling Connect:Direct for Microsoft Windows SNODE. If your SNODE is not a Sterling Connect:Direct for Microsoft Windows system, create a Run Task similar to the following example appropriate for your SNODE platform.
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 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 business process file and click Open.
-
Drag and drop the CD Server Run Task Service icon from the Connect:Direct stencil into the Business Process window.
-
To arrange and link the icons:
Click the CD Server Run Job Service icon and press Delete to remove it.
Place the CD Server Run Task Service icon between the CD Server CopyTo Service icon and the CD Server End Session 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 Run Task Service icon.
Click the arrow on the right side of the CD Server Run Task Service icon and drag it to the arrow on the left side of the CD Server End Session Service icon.
-
Configure the CD Server Run Task Service using the following procedure:
Double-click the CD Server Run Task Service icon. This opens the Service Editor window.
The Connect:Direct Server Run Task Service acts like a Run Task statement in a Sterling Connect:Direct process. Use this service to start a Sterling Connect:Direct Run Task on a remote Sterling Connect:Direct server and wait for it to complete before executing the next service in a business process.
In the Service Editor-CD Server Run Task Service window, select CDServerRunTask from the Config drop-down list.
In this step you specify the pre-defined CDServerRunTask configuration to use for the CD Server Run Task Service. You can override configuration values in the Service Editor.
Type pgm(path/filename) desktop(yes) as the Value for SystemOpts, where path is the full directory path and filename is the file name of the program or script you wish to run in the Run Task. (SystemOpts is the equivalent of Sysopts.)
Note: Do not enclose the value specified for SystemOpts in double quotes.
Type //BeginSessionResults/SessionToken/node() as the Value for SessionToken and select the Use XPATH? box.
The SessionToken value in the CD Server Run Task Service ensures that this service starts the Sterling Connect:Direct Run Task using 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 the business process file name in the File Name box and click Save. Remember where you save this file.