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
Chamando um flow de dentro do Transform Message
Search
Alex teles
January 17, 2017
Education
0
71
Chamando um flow de dentro do Transform Message
Chamando um flow de dentro do Transform Message
Alex teles
January 17, 2017
Tweet
Share
More Decks by Alex teles
See All by Alex teles
Mulesoft configurando conexão com banco AS400 DB2
alexteles10
0
88
MuleSoft Juntando duas ou mais Listas ordenadas
alexteles10
0
67
MuleSoft Como mockar resultado com transform mensager
alexteles10
0
40
MuleSoft mock com set payload
alexteles10
0
45
Como excluir o conector do facebook Do anyponit
alexteles10
0
66
Baixando conectores que não são nativos
alexteles10
0
57
Editor do Anypoint
alexteles10
0
41
MuleSoft Como fazer um when dentro de um when
alexteles10
0
45
MuleSoft Property configuração
alexteles10
0
56
Other Decks in Education
See All in Education
Human-AI Interaction - Lecture 11 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
490
AIの時代こそ、考える知的学習術
yum3
2
180
Implicit and Cross-Device Interaction - Lecture 10 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
1.7k
CHARMS-HP-Banner
weltraumreisende
0
480
Pythonパッケージ管理 [uv] 完全入門
mickey_kubo
22
20k
著作権と授業に関する出前講習会/dme-2025-05-01
gnutar
0
210
SARA Annual Report 2024-25
sara2023
1
200
2025年度春学期 統計学 第6回 データの関係を知る(1)ー相関関係 (2025. 5. 15)
akiraasano
PRO
0
170
2025年度春学期 統計学 第10回 分布の推測とは ー 標本調査,度数分布と確率分布 (2025. 6. 12)
akiraasano
PRO
0
210
OJTに夢を見すぎていませんか? ロールプレイ研修の試行錯誤/tryanderror-in-roleplaying-training
takipone
1
200
技術文章を書くための執筆技術と実践法(パラグラフライティング)
hisashiishihara
19
6.7k
Data Management and Analytics Specialisation
signer
PRO
0
1.4k
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Unsuck your backbone
ammeep
671
58k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
760
The Pragmatic Product Professional
lauravandoore
36
6.8k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
How to train your dragon (web standard)
notwaldorf
96
6.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
Transcript
Mulesoft
Chamando um flow de dentro do Transform Message
Vamos ultilizar dois flows, um com transform que vai
chaar o outro flow como na imagem
Poll para iniciar a chamada
Aqui está o segredo chama o nome do segundo flow
no lookup e pode passar parâmetros
Setando valor para o payload para retorna para o segundo
flow
XML <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking"
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 http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule- tracking-ee.xsd"> <flow name="lookup-flowsFlow"> <poll doc:name="Poll"> <fixed-frequency-scheduler frequency="10000" timeUnit="MINUTES"/> <logger message="START" level="INFO" doc:name="Logger"/> </poll> <dw:transform-message doc:name="Transform Message"> <dw:set-payload><![CDATA[%dw 1.0
XML 2 %output application/java --- {
nome: lookup ("segundoFlow",{}) }]]></dw:set-payload> </dw:transform-message> <logger message="=== result === #[message.payloadAs(java.lang.String)]" level="INFO" doc:name="Logger"/> </flow> <flow name="segundoFlow"> <logger level="INFO" doc:name="Logger"/> <set-payload value="#["Alex Lindo"]" doc:name="Set Payload"/> </flow> </mule>
FIM