IBM Support

Using Sterling Connect:Direct Requester Submit Process Service in IBM Sterling B2B Integrator

Technical Blog Post


Abstract

Using Sterling Connect:Direct Requester Submit Process Service in IBM Sterling B2B Integrator

Body

Author: Manisha Khond, IBM Cognitive Engagement, Watson Supply Chain.

 

The purpose of Sterling Connect:Direct Requester Submit Process Service is to submit a Connect:Direct process to remote Connect:Direct node. The submitted process executes on the remote Connect:Direct node. The Service requires the Sterling Connect:Direct Requester adapter to be used.

There are three ways to submit a process to execute on a remote Connect:Direct node.

  1. Submit the name of a process that already exists on the remote Connect:Direct node.
  2. Submit the process text (the body of the process) INLINE (or embedded) within the IBM Sterling B2B Integrator business process.
  3. Submit a document in a business process containing the process TEXT (the body of the process) to the remote Connect:Direct node.

Below are examples of the above mentioned scenarios.

  • Submit the name of a process that already exists on the remote Connect:Direct node.

    <!-- Submit the NAME of a process residing on the Remote Connect:Direct Node for execution. The Sterling Connect:Direct Requester Submit Process Service submits a Connect:Direct process called Copy2ZOS.cdp -->

<operation name="CD Requester Submit Service">
      <participant name="CDRequesterSubmit"/>
      <output message="CDSubProc">
        <assign to="CDRequesterName">TestCDZRequester</assign>
        <assign to="ProcessName">Copy2ZOS.cdp</assign>
        <assign to="." from="*"></assign>
      </output>
      <input message="inmsg">
        <assign to="." from="*"></assign>
      </input>
    </operation>

 

  • Submit the process text (the body of the process) INLINE (or embedded) within the IBM Sterling B2B Integrator business process.

The ProcessText parameter specifies the text of the process to be submitted to the Connect:Direct server. This parameter is Optional. If both ProcessText and ProcessDocumentId are blank, then the primary document must contain the process text.

  <!--  Submit the Embedded process TEXT of a process to be executed on the Remote Connect:Direct Node. The process TEXT is mentioned in the ProcessText parameter. -->
    <operation name="CDSubProc">
      <participant name="CDSubProc"/>
      <output message="CDSubProc">
        <assign to="CDRequesterName">TestCDZRequester</assign>
        <assign to="." from="*"></assign>
         <assign to="SnodeAccounting">RD=/U/DTCUSER/CONFIRM_TRAC.OUT RL=0847 RO=DTCTRANS,XXXXXX RS=I RN=RPL</assign>
        <assign to="ProcessText">PNAME PROCESS SNODE=CDNODENAME
        NDMxxxx COPY FROM (FILE=/u/dtcuser/DTCTRAC PNODE) -
        CKPT=40K -
        TO (FILE=PISP.NDMCF201.Uxxxx.TRAC.DDDDDDD.TTTTTTT.I -
        SNODE DISP=(NEW,CATLG,KEEP) -
        DCB=(DSORG=PS,RECFM=FB,LRECL=0807,BLKSIZE=800) -
        SPACE=(CYL,(1,1),RLSE) -
        UNIT=SYSDA)</assign>
      </output>
      <input message="inmsg">
        <assign to="." from="*"></assign>
      </input>
    </operation>

 

  • Submit a Document in the IBM Sterling B2B Integrator containing the process TEXT (the body of the process) to the remote Connect:Direct node.

ProcessDocumentId parameter specifies the Document ID of the document that contains text of the process to be submitted to the remote Connect:Direct server. This parameter is Optional. If both ProcessText and ProcessDocumentId are blank, then the primary document must contain the process text.

<!-- Submit a Document containing the process TEXT to be executed on the Remote CD Node. The document referenced in ProcessDocumentId has the TEXT of the Connect:Direct process.  -->
    <operation name="CD Requester Submit Service">
      <participant name="CDRequesterSubmit"/>
      <output message="CDSubProc">
        <assign to="CDRequesterName">TestCDZRequester</assign>
        <assign to="ProcessDocumentId">xxx:node1:1596fccd045</assign>
        <assign to="." from="*"></assign>
      </output>
      <input message="inmsg">
        <assign to="." from="*"></assign>
      </input>
    </operation>

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11121043