Created
September 20, 2016 13:12
-
-
Save mariomartinezricston/7929cca0d65cbca1b6845e127ba402bb to your computer and use it in GitHub Desktop.
File Persistance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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("dd/MM/yyyy") ],#[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