<!-- Setting the file location and data on the input item -->
<arc:set attr="input.file" value="/tmp/myfiles/cars.json"/>
<arc:setc attr="input.data">{
"Cars": [
{
"Make": "Toyota",
"Model": "Camry",
"Type": "Sedan"
},
{
"Make": "Toyota",
"Model": "Corolla",
"Type": "Sedan"
}
]
}
</arc:setc>
<!-- Calling fileCreate and passing in the input item -->
<arc:call op="fileCreate" in="input" out="result">
<!-- Optional: Logging information about the created file to the application log -->
<arc:set attr="_log.info" value="A file with the timestamp of [result.file:cdate] was created and written to this path: [result.file:file]"/>
</arc:call>