mule

Mule ESB DataMapper: Aggregation of field conditional to field type

被刻印的时光 ゝ 提交于 2020-03-16 09:21:42
问题 Mule ESB DataMapper: Aggregation of field conditional to field type I have the following structures: Strcuture A: <itemlist> <item> <id>123</id> <price>1</price> <quantity>1</quantity> <type>AAA</type> </item> <item> <id>124</id> <price>2</price> <quantity>1</quantity> <type>BBB</type> </item> <item> <id>125</id> <price>3</price> <quantity>1</quantity> <type>BBB</type> </item> <itemlist> Structure B: <totals> <total> <totalPrice>3</totalPrice> </total> </totals> If I want a sumation of all

Mule ESB DataMapper: Aggregation of field conditional to field type

孤者浪人 提交于 2020-03-16 09:21:04
问题 Mule ESB DataMapper: Aggregation of field conditional to field type I have the following structures: Strcuture A: <itemlist> <item> <id>123</id> <price>1</price> <quantity>1</quantity> <type>AAA</type> </item> <item> <id>124</id> <price>2</price> <quantity>1</quantity> <type>BBB</type> </item> <item> <id>125</id> <price>3</price> <quantity>1</quantity> <type>BBB</type> </item> <itemlist> Structure B: <totals> <total> <totalPrice>3</totalPrice> </total> </totals> If I want a sumation of all

Unresolveable error occured in org.mule.tools.maven

有些话、适合烂在心里 提交于 2020-02-06 10:05:44
问题 I am getting the following Error in Maven Project build error: Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar: 1.5.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Unresolveable error occured in org.mule.tools.maven

老子叫甜甜 提交于 2020-02-06 10:02:07
问题 I am getting the following Error in Maven Project build error: Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar: 1.5.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

How to access property from property file in java code( Mule ESB)

依然范特西╮ 提交于 2020-02-04 05:28:07
问题 I am trying to fetch a property from the properties file in java code written in mule. Class Example { @NotBlank("message" = "${prop1}") String key1; String key2; } prop1 is a property stored in properties file prop1 = " 001 | key1 cannot be blank" I want prop1 to be resolved as 001 | key1 cannot be blank . ${propname} doesn't work. I can't use the value annotation as I want to save the value of the property in the message. 回答1: The best approach for this is to not depend on any Mule specific

Want to capture Error log for a Mule Flow and looking for following information

一世执手 提交于 2020-01-26 04:40:08
问题 I have a flow Which dynamically loads data from Source tables to Destination tables. Refer Flow Screenshot below: If anythings fail in this flow, I want to capture Flow_Name, Task_Name and Error_Desc. I already have following information into variables: Source_Table,Destination_Table,Source_Query,Destination_Query Table Structure: Want to capture Data Load Log to a SQL or Snowflake table in Mule Flow 来源: https://stackoverflow.com/questions/59870996/want-to-capture-error-log-for-a-mule-flow

Unexpected 404 using Mule 3.6 HTTP Connector

两盒软妹~` 提交于 2020-01-25 10:30:09
问题 I'm getting unexpected 404 errors using the new HTTP connector and can't figure out why. This curl makes the same call I'm trying to make, and works as expected: curl -H "X-AuntBertha-Signature: AUTH_SIG" \ https://searchbertha-hrd.appspot.com/_ah/api/search/v1/programs/4818166?api_key=MY_API_KEY \ > resources_dump.json However, this flow does NOT working. Vendor told me that they don't even see the request show up in their logs, so something is funky. <http:request-config name="AuntBertha

Mule JaxB binding error - “package” doesnt contain ObjectFactory.class or jaxb.index

…衆ロ難τιáo~ 提交于 2020-01-25 01:52:20
问题 I am using mule with maven. I have used a xml to object converter. My model files are annotated with jaxb annotations. The JAXB context ref looks like this -: mulexml:jaxb-context name="JAXB_Context" packageNames="com.xml.model" doc:name="JAXB Context"/> I have created a jaxb.index file with the names of the JAXB annotated classes and placed in the com.xml.model folder. But still it shows the following exception -: org.springframework.beans.factory.BeanCreationException: Error creating bean

Facing error in Batch Processing mule esb

ぃ、小莉子 提交于 2020-01-24 12:53:31
问题 I am facing problem in batch processing mule esb. If I set any payload in process record face and try to get that payload in oncomplete face then not getting that payload. same problem with variable and property. If I set any property in process record phase and try to get in on complete phase then always get null value. how to get those value in oncomplete phase? below is flow.. <batch:job name="TestBatch" max-failed-records="-1"> <batch:input> <component class="com.test.RecordTest" doc:name

Using “Mule Requester” and FTP loses originalFilename

白昼怎懂夜的黑 提交于 2020-01-23 03:30:51
问题 I am working on a flow that will, when triggered by an HTTP request, download files from an FTP server. In order to do this on request, instead of on polling, I am using the Mule Requester. I have found that without the requestor, FTP connector will set the "incomingFilename" on the inboundProperties collection for each of the files. When used with the Mule Requester, the filename property is not set, therefore I have no idea what file I am processing... or in this case saving to the file