VDAEnvelope Business Process

The VDAEnvelope business process is initiated when it is called by another business process. The VDAEnvelope business process envelopes the VDA messages contained in the business process context with outbound VDA envelopes that you have pre-configured. You must have created one outbound VDA envelope for each VDA message type that you are sending.

A typical scenario is one in which VDA data must be sent to a trading partner. To prepare for this, the data must be enveloped to provide identifying batch and interchange data. The VDAEnvelope business process helps to provide these enveloping services.

The VDAEnvelope business process is initiated as part of the following outbound process flow:

  1. You create a business process that calls the EDI Encoder service.
  2. The EDI Encoder service calls the EDI Enveloping service, either in immediate or deferred mode, depending on what you specify.
  3. The EDI Enveloping service starts the VDAEnvelope business process (which runs the Generic Envelope service as a subprocess to extract the name of the business process).
  4. The VDAEnvelope business process searches the envelope definition to retrieve information to envelope each message.
    Note: The Sender ID, Receiver ID, and Lookup Alias in your Outbound Envelope definition must match the parameters that you define for this outbound business process.

The following BPML code makes up the VDA Envelope business process:


<process name="VDAEnvelope">

  <rule name="contract">
    <condition>CONTRACT_FOUND = "YES"</condition>
  </rule>

  <sequence>
    <operation>
      <participant name="EnvelopeGeneric" />
      <output message="Xout" >
        <assign to="." from="*"></assign>
      </output>
      <input message="Xin" >
        <assign to="." from="*"></assign>
      </input>
    </operation>

    <choice>
      <select>
        <case ref="contract" activity="invoke_contract_workflow" />
      </select>
      <sequence name="invoke_contract_workflow">
        <operation>
          <participant name="InvokeBusinessProcessService" />
          <output message="Xout">
            <assign to="INVOKE_MODE">ASYNC</assign>
            <assign to="." from="*"></assign>
          </output>
          <input message="Xin" >
            <assign to="." from="*"></assign>
          </input>
        </operation>
      </sequence>
    </choice>

  </sequence>
</process>

Before Using the VDAEnvelope Business Process

Before you use the VDAEnvelope business process, you must complete the following task:

  1. Create a VDA outbound envelope for each VDA message type that you are sending. See Inbound VDA Envelope.