Multiple Expressions in One Mule Component Expression

Currently I have to use multiple expression components with one expression in each. Can I write more than one expression into a single expression component?

                <expression-component doc:name="SuppIdEnhancer"><![CDATA[payload.SupplierId = flowVars.SupplierRequestData.SupplierId]]></expression-component>
                <expression-component doc:name="PaySiteIdEnhancer"><![CDATA[payload.SupplierPaySiteId = flowVars.SupplierRequestData.SupplierPaySiteId]]></expression-component>
                <expression-component doc:name="PurSiteIdEnhancer"><![CDATA[payload.SupplierPurSiteId = flowVars.SupplierRequestData.SupplierPurSiteId]]></expression-component>

      

+3


source to share


1 answer


Yes. You can have more than one expression in a component expression.

 <expression-component doc:name="SuppIdEnhancer">
    <![CDATA[payload.SupplierId = flowVars.SupplierRequestData.SupplierId;
    payload.SupplierPaySiteId = flowVars.SupplierRequestData.SupplierPaySiteId;
    payload.SupplierPurSiteId = flowVars.SupplierRequestData.SupplierPurSiteId;]]>
 </expression-component>

      



Hope it helps.

+5


source







All Articles