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
65
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
84
MuleSoft Juntando duas ou mais Listas ordenadas
alexteles10
0
60
MuleSoft Como mockar resultado com transform mensager
alexteles10
0
34
MuleSoft mock com set payload
alexteles10
0
37
Como excluir o conector do facebook Do anyponit
alexteles10
0
62
Baixando conectores que não são nativos
alexteles10
0
53
Editor do Anypoint
alexteles10
0
38
MuleSoft Como fazer um when dentro de um when
alexteles10
0
38
MuleSoft Property configuração
alexteles10
0
50
Other Decks in Education
See All in Education
学習指導要領から職場の学びを考えてみる / Thinking about workplace learning from learning guidelines
aki_moon
1
540
AGU情報社会論 2024 #07 "フェアユース"
fullfull
0
100
ブラウザのフタを開けてHTTP体験しよう 20240608v1.0.0
fmlorg
0
130
2024年度春学期 統計学 第12回 分布の平均を推測する ー 区間推定 (2024. 6. 27)
akiraasano
PRO
1
150
PSYC-560 R and R Studio Setup
jdbedics
0
490
みんなのコード2023年度活動報告・2024年度活動方針/Annual report2023
codeforeveryone
0
210
【基本】Oracle Database データベース・ユーザー・セキュリティ入門
oracle4engineer
PRO
1
660
Unlocking the Top Marketing Secrets for L&D
tmiket
1
330
いまからでも遅くない!サイバーセキュリティ人材育成
mnori0211
1
1.7k
RSJ2024学術ランチョンセミナー「若手・中堅による国際化リーダーシップに向けて」資料 (河原塚)
haraduka
0
180
White Snake: Qing's Mission
movingcastal
0
240
Цифровые финансы - магистерская программа Финэка МГИМО 2024 г.
niellony
0
670
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
221
8.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
38
9.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
363
22k
In The Pink: A Labor of Love
frogandcode
139
22k
Six Lessons from altMBA
skipperchong
26
3.3k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Fantastic passwords and where to find them - at NoRuKo
philnash
48
2.8k
Building Your Own Lightsaber
phodgson
101
6k
[RailsConf 2023] Rails as a piece of cake
palkan
46
4.6k
4 Signs Your Business is Dying
shpigford
179
21k
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
88
16k
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