In this scenario, you replace the CD Server Submit Service with the CD Server Run Job 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 Job on that server.
About this task
The Run Job 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 Job 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 Job Service icon from the Connect:Direct stencil into the Business Process window.
-
To arrange and link the icons:
Click the CD Server Submit Service icon and press Delete to remove it.
Place the CD Server Run Job 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 Job Service icon.
Click the arrow on the right side of the CD Server Run Job 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 Job Service using the following procedure:
Double-click the CD Server Run Job Service icon. This opens the Service Editor window.
The Connect:Direct Server Run Job Service acts like a Run Job statement in a Sterling Connect:Direct process. Use this service to start a Sterling Connect:Direct Run Job on a remote Sterling Connect:Direct server.
In the Service Editor-CD Server Run Job Service window, select CDServerRunJob from the Config drop-down list.
In this step you specify the pre-defined CDServerRunJob configuration to use for the CD Server Run Job Service. You can override configuration values in the Service Editor.
Type pgm(path/filename) desktop(yes) as the Value for Sysopts, 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 Job.
Type //BeginSessionResults/SessionToken/node() as the Value for SessionToken and select the Use XPATH? box.
The SessionToken value in the CD Server Run Job Service ensures that this service starts the Sterling Connect:Direct Run Job 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 name in the File Name box and click Save. Remember where you save this file.