MEIGAS4InboundWithReplySample sample business process
The MEIGAS4InboundWithReplySample business process writes the document to the file share, sends a visibility event, and uses the Business Document Object Receiver adapter to send a reply.
Business process definition for exchanges with attachments that are not used as a reply
The following code shows the MEIGAS4InboundWithReplySample business process definition for AS4 exchanges that have attachments that are not used as a reply:
<process name = "MEIGAS4InboundWithReplySample">
<sequence name="Sequence Start">
<operation name="File System Adapter">
<participant name="MEGFileSystemAdapter"/>
<output message="FileSystemInputMessage">
<assign to="." from="*"></assign>
<assign to="Action">FS_EXTRACT</assign>
<assign to="extractionFolder">/ais_local/share/ydiao/5201ga/install/meg/sample/extract</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="BDOReceiverAdapterType">
<participant name="BDOReceiverAdapter"/>
<output message="BDOReceiverAdapterTypeInputMessage">
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
Business process definition for exchanges with attachments that are used as a reply
The following code shows the MEIGAS4InboundWithReplySample business process definition highlighting the additional field required for AS4 exchanges with attachments that are used as a reply. The additional line says to use the attachment as the primary document, as if it is the processed result of the payload:
<process name = "MEIGAS4InboundWithReplySample">
<sequence name="Sequence Start">
<assign to="PrimaryDocument" from="Attachment1/@SCIObjectID"></assign>
<operation name="File System Adapter">
<participant name="MEGFileSystemAdapter"/>
<output message="FileSystemInputMessage">
<assign to="." from="*"></assign>
<assign to="Action">FS_EXTRACT</assign>
<assign to="extractionFolder">/ais_local/share/ydiao/5201ga/install/meg/sample/extract</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
<operation name="BDOReceiverAdapterType">
<participant name="BDOReceiverAdapter"/>
<output message="BDOReceiverAdapterTypeInputMessage">
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>