Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Created September 20, 2016 13:12
Show Gist options
  • Save mariomartinezricston/7929cca0d65cbca1b6845e127ba402bb to your computer and use it in GitHub Desktop.
Save mariomartinezricston/7929cca0d65cbca1b6845e127ba402bb to your computer and use it in GitHub Desktop.
File Persistance
<flow name="loadReportStatusFlow">
<mulerequester:request config-ref="Mule_Requester" resource="file://src/main/resources/csv/month-status.csv"
doc:name="Mule Requester" metadata:id="93ffe5e0-53c8-4ad8-88e8-b0b2cd29ff2a"/>
<byte-array-to-string-transformer doc:name="Byte Array to String"/>
<custom-transformer class="com.ricston.invoiceintegration.transformer.StringToStatusRecordTransformer" doc:name="Java"/>
</flow>
<flow name="addNewMonthStatusRecordFlow">
<set-payload value="#['\n' + server.dateTime.format(&quot;dd/MM/yyyy&quot;) ],#[flowVars.processStatus]"
mimeType="application/csv" doc:name="Set Payload"/>
<logger message="#[payload]" level="INFO" doc:name="Logger"/>
<file:outbound-endpoint path="src/main/resources/csv" responseTimeout="10000" doc:name="File"
mimeType="application/csv" outputPattern="month-status.csv"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment