Tag: mule

如何使用日志触发事件(发送确认)发送通知邮件

有没有办法使用日志上的消息触发通知我能够parsing并发送警告和错误的电子邮件? 如果有logging失败,我也正在查看数据映射器的错误或警告,因为我已将错误input策略参数设置为宽松。 我相信我应该可以打电话给某个class级。 有什么想法吗?

从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"> […]

如何使用Mule 3.4 ESB中的Datamapper在数据库中映射Excel文件

各位早上好, 我在Mule ESB中的Datamapper组件有一个大问题。 我正在试图将一个Excel文件(xlsx)映射到一个oracle数据库的表中。 为此,我使用Oracle DataSource及其所有东西创build了JDBC连接器,但是当我到DataMapper向导创build映射时,我无法select创build的连接器,因为连接器列表中没有项目(在Output datamapper向导标签中)[下面是我的问题的屏幕截图] 我真的不明白为什么,你能帮我吗? 此外,我还有一个问题:除了xls文件提供的其他字段外,我还需要在数据库中插入其他字段,例如MuleMessageID,xls文件名和Oracle SYSDATE。 它可能吗? 为了给你提供尽可能多的信息,我会发布我的mule子项目 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp" xmlns:ftp="http://www.mulesoft.org/schema/mule/ee/ftp" xmlns:jdbc-ee="http://www.mulesoft.org/schema/mule/ee/jdbc" xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:https="http://www.mulesoft.org/schema/mule/https" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ee/jdbc http://www.mulesoft.org/schema/mule/ee/jdbc/current/mule-jdbc-ee.xsd http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.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/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd http://www.mulesoft.org/schema/mule/ee/ftp http://www.mulesoft.org/schema/mule/ee/ftp/current/mule-ftp-ee.xsd http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/current/mule-scripting.xsd http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-smtp.xsd"> […]