<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:salesforce="http://www.mulesoft.org/schema/mule/salesforce"
      xmlns:os="http://www.mulesoft.org/schema/mule/os"
      xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <salesforce:sfdc-config name="Salesforce_Config" doc:name="Salesforce Config" doc:id="74a06b2c-b41b-4f2d-87cb-4bd44cae2577" >
        <salesforce:basic-connection username="demo.sap.ordertocash@mulesoft.com" password="Mulesoft1" securityToken="68rTchFEDXui9JlEqPQfBhva" />
    </salesforce:sfdc-config>
    <flow name="testFlow" doc:id="ffa13310-1077-4c88-8456-fe70e6f08d88" >
        <set-payload value="#[payload]" doc:name="Set Payload" doc:id="b68916e3-b1cd-41d2-9c06-3f4d367fadb9" />
        <ee:transform doc:name="Transform Message" doc:id="71a212f5-e301-4729-b2d0-5ef3725bf40a" >
            <ee:message >
                <ee:set-payload ><![CDATA[%dw 2.0
output application/xml
---
a: {
	fullName @(n: 123): "Shoki!!!!",
	age: 36
}]]></ee:set-payload>
            </ee:message>
        </ee:transform>
    </flow>
    <flow name="testFlow1" doc:id="caf3e89d-b249-45bb-97a0-e5d4197af977" >
        <set-payload value="#[payload]" doc:name="Set Payload" doc:id="884ee3f4-6e99-4204-a3f7-73b62cbdc6d9" />
        <ee:transform doc:name="Transform Message" doc:id="0d391367-f48f-4f37-9b7e-a8b595a5cf9d" >
            <ee:message >
                <ee:set-payload ><![CDATA[%dw 2.0
output application/csv headerLineNumber = 0 , header = true
---
[{
	name: payload.shiporder.orderperson,
	lastName: payload.shiporder.shipto.name
}]]]></ee:set-payload>
            </ee:message>
        </ee:transform>
    </flow>
</mule>
