RNDEnvelope Business Process
The RNDEnvelope business process is initiated when it is called by another business process. The RNDEnvelope business process envelopes the RND messages contained in the business process context with outbound RND envelopes that you have preconfigured. You must have created one outbound RND envelope for each RND message type that you are sending.
A typical scenario is one in which RND 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 RNDEnvelope business process helps to provide these enveloping services.
The RNDEnvelope business process is initiated as part of the following outbound process flow:
- You create a business process that calls the EDI Encoder service.
- The EDI Encoder service calls the EDI Enveloping service, either in immediate or deferred mode, depending on what you specify.
- The EDI Enveloping service starts the RNDEnvelope business process (which runs the Generic Envelope service as a subprocess to extract the name of the business process).
- The RNDEnvelope 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 RND Envelope business process:
<process name="RNDEnvelope">
<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 RNDEnvelope Business Process
Before you use the RNDEnvelope business process, you must create a RND outbound envelope for each RND message type that you are sending. See RNDOutbound Envelope.