目前我必须使用多个表达式组件,每个表达式组件中包含单个表达式。是否可以将多个表达式写入单个表达式组件?
<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>
答案 0 :(得分:6)
是。表达式组件中可以有多个表达式。
<expression-component doc:name="SuppIdEnhancer">
<![CDATA[payload.SupplierId = flowVars.SupplierRequestData.SupplierId;
payload.SupplierPaySiteId = flowVars.SupplierRequestData.SupplierPaySiteId;
payload.SupplierPurSiteId = flowVars.SupplierRequestData.SupplierPurSiteId;]]>
</expression-component>
希望这有帮助。