Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MuleSoft Juntando duas ou mais Listas ordenadas
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Alex teles
January 10, 2017
Education
0
72
MuleSoft Juntando duas ou mais Listas ordenadas
MuleSoft Juntando duas ou mais Listas ordenadas
Alex teles
January 10, 2017
Tweet
Share
More Decks by Alex teles
See All by Alex teles
Mulesoft configurando conexão com banco AS400 DB2
alexteles10
0
100
Chamando um flow de dentro do Transform Message
alexteles10
0
78
MuleSoft Como mockar resultado com transform mensager
alexteles10
0
46
MuleSoft mock com set payload
alexteles10
0
55
Como excluir o conector do facebook Do anyponit
alexteles10
0
71
Baixando conectores que não são nativos
alexteles10
0
61
Editor do Anypoint
alexteles10
0
45
MuleSoft Como fazer um when dentro de um when
alexteles10
0
60
MuleSoft Property configuração
alexteles10
0
60
Other Decks in Education
See All in Education
2025-12-11 nakanoshima.dev LT
takesection
0
120
20251119 如果是勇者欣美爾的話, 他會怎麼做? 東海資工
pichuang
1
180
SJRC 2526
cbtlibrary
1
210
RGBでも蛍光を!? / RayTracingCamp11
kugimasa
2
440
学習指導要領と解説に基づく学習内容の構造化の試み / Course of study Commentary LOD JAET 2025
masao
1
140
【ベテランCTOからのメッセージ】AIとか組織とかキャリアとか気になることはあるけどさ、個人の技術力から目を背けないでやっていきましょうよ
netmarkjp
2
3.8k
Introduction - Lecture 1 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
4.4k
タイムマシンのつくりかた
nomizone
3
1k
TypeScript初心者向け完全ガイド
mickey_kubo
1
150
【洋書和訳:さよならを待つふたりのために】第1章 出会いとメタファー
yaginumatti
0
260
Information Architectures - Lecture 2 - Next Generation User Interfaces (4018166FNR)
signer
PRO
1
1.8k
地区危機管理委員会 出前セミナー「ロータリーにおける危機管理」:膳所 和彦 氏(国際ロータリー第2720地区 パストガバナー・日田ロータリークラブ・医療法人恒心会ぜぜ医院 理事長):2720 Japan O.K. ロータリーEクラブ2026年2月16日卓話
2720japanoke
1
580
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
Darren the Foodie - Storyboard
khoart
PRO
3
2.7k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
150
Color Theory Basics | Prateek | Gurzu
gurzu
0
220
Bash Introduction
62gerente
615
210k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
68
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Designing Experiences People Love
moore
143
24k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Transcript
MuleSoft 2017
Juntando duas ou mais Listas ordenadas
Visão geral de como vai ser feito no exemplo
Exemplo de Payload que vamos usar de como dever ser
a saída.
Configuração do Poll
Primeira lista setada no payload do type json
Segunda lista setada como uma lista de Strings java
Terceira lista setada como inteiro
Como vai ficar a saída
Lista 1 Lista 2 Lista 3 Lista 1 Lista 2
Lista 3
Index das listas
Rodando o projeto em odo degug
Payload antes de justar as listas Variáveis com as listas
Listas mescladas
XML Gerado
<?xml version="1.0" encoding="UTF-8"?> <mule 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/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd"> <flow name="mock-set-payloadFlow"> <poll doc:name="Poll"> <fixed-frequency-scheduler frequency="1000" timeUnit="MINUTES"/> <logger message="====Start=====" level="INFO" doc:name="Logger"/> </poll> <set-payload value="[
{"Nome":"pao", "Descricao":"pao de queijo"}, {"Nome":"queijo", "Descricao":"queijo coalho"}, {"Nome":"Pipoca","Descricao":"Pipoca com mantega"}
]" doc:name="Set Payload" mimeType="application/json"/> <set-variable variableName="varValores" value="#[['10','221','399']]" mimeType="application/java" doc:name="Variable_valores"/> <set-variable variableName="varQTD" value="#[[3,1,10]]" doc:name="Variable_quantidades"/> <dw:transform-message metadata:id="26f9ac57-0bb8-4858-9518-148549e84370" doc:name="Transform Message"> <dw:input-payload mimeType="application/json"/> <dw:set-payload><![CDATA[%dw 1.0 %output application/java
--- payload map ((payloadProduto , index) -> { Name: payloadProduto.Nome,
Description: payloadProduto.Descricao, Value: flowVars.varValores[index], Quantity: flowVars.varQTD[index] })]]></dw:set-payload> </dw:transform-message> <logger message="=====resultado======#[message.payloadAs(java.lang.String)]" level="INFO" doc:name="Logger"/> </flow> </mule>
Bom Chegamos ou FIM Obrigado a todos