Tag: dataweave

从mule子esb操作Excel中的数据

我有一个像数据的excel Name Roll_No Place Mahesh 112 Hyd Manish 118 Pune Somesh 119 Lon Abc 110 xyz 现在,如果我有一个通过mule子根据卷号获取学生的名字。 在mule中的stream量variables将具有像112那样的Roll_No,并且相应的名称将是Mahesh。 我在最新的mule版本中使用了DataWeave。 下面是一段代码。 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd"> <flow name="excelcheckFlow"> <file:inbound-endpoint path="C:\Users\rmishra\Desktop\PoCs" responseTimeout="10000" doc:name="File"/> <logger message="———–Read the content——#[payload]" level="INFO" doc:name="Logger"/> <dw:transform-message metadata:id="74fc2359-be73-475f-a800-71ab941497ee" doc:name="Transform Message"> […]