<!-- Calling messageRead and replacing all commmas with pipes -->
<arc:call op="messageRead" out="result" >
<arc:set attr="messageOut.data" value="[result.data | replace(',','|')]" />
</arc:call>
<!-- Checking to make sure the output message has data, else throw an error -->
<arc:check attr="messageOut.data" >
<arc:set attr="messageOut.filename" value="[FileName]" />
<arc:push item="messageOut" />
<arc:else>
<arc:throw code="NoData" desc="No message data." />
</arc:else>
</arc:check>