Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SpeakerDeck.com
Search
Alex teles
August 10, 2016
Education
53
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SpeakerDeck.com
SpeakerDeck.com
Alex teles
August 10, 2016
Transcript
20 slides
MeluSoft
Como cria um loop sem usar for each groovy ou
java
Configuração do projeto Dois flow Set payload
Logger Flow Reference Choice
Flow completo
Configuração do poll
Xml do poll
Seta no payload o valor das voltas que vai ser
executado
XML poll <set-payload value="#[3]" doc:name="Set Payload"/>
Mostra o que tem no payload
No reference flow chama o segundo flow
Segundo flow do loop
Log para ver o que esta chegando.
Choice com a condição #[payload > 1] isso é uma
expreção
<choice doc:name="Choice"> <when expression="#[payload > 1]"> <logger
message="Entrou no Choice" level="INFO" doc:name="Logger"/> <set-payload value="#[payload - 1 ]" doc:name="Set Payload"/> <flow-ref name="loop_de_flowFlow_2" doc:name="Chama_flow_2"/> </when> <otherwise> <logger message="Fim....." level="INFO" doc:name="Logger"/> </otherwise> </choice>
Aqui estou decrementando o payload
Chama o mesmo flow
<?xml version="1.0" encoding="UTF-8"?> <mule xmlns:schedulers="http://www.mulesoft.org/schema/mule/schedulers" 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/schedulers http://www.mulesoft.org/schema/mule/schedulers/current/mule-schedulers.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"> <flow name="loop_de_flowFlow_1"> <poll doc:name="Poll">
<flow name="loop_de_flowFlow_1"> <poll doc:name="Poll"> <schedulers:cron-scheduler expression="0 0
0 1 * ? 2016"/> <logger message="Iniciado" level="INFO" doc:name="Logger"/> </poll> <set-payload value="#[3]" doc:name="Set Payload"/> <logger message="Valor do payload ======= #[payload] ============" level="INFO" doc:name="Logger"/> <flow-ref name="loop_de_flowFlow_2" doc:name="Chama_Flow_2"/> </flow>
<flow name="loop_de_flowFlow_2"> <logger message="#[payload]" level="INFO" doc:name="Logger"/> <choice
doc:name="Choice"> <when expression="#[payload > 1]"> <logger message="Entrou no Choice" level="INFO" doc:name="Logger"/> <set-payload value="#[payload - 1 ]" doc:name="Set Payload"/> <flow-ref name="loop_de_flowFlow_2" doc:name="Chama_flow_2"/> </when> <otherwise> <logger message="Fim....." level="INFO" doc:name="Logger"/> </otherwise> </choice> </flow> </mule>
Obrigado Fim
More Decks by Alex teles
See All by Alex teles
Mulesoft configurando conexão com banco AS400 DB2
alexteles10
0
120
Chamando um flow de dentro do Transform Message
alexteles10
0
86
MuleSoft Juntando duas ou mais Listas ordenadas
alexteles10
0
83
MuleSoft Como mockar resultado com transform mensager
alexteles10
0
55
MuleSoft mock com set payload
alexteles10
0
67
Como excluir o conector do facebook Do anyponit
alexteles10
0
86
Baixando conectores que não são nativos
alexteles10
0
70
Editor do Anypoint
alexteles10
0
58
MuleSoft Como fazer um when dentro de um when
alexteles10
0
76
Other Decks in Education
See All in Education
Liburd and Stoll Farrell "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session Three: Exceptions for Libraries"
baltimoreniso
0
230
Session 7 - Teknik Lobby dan Negosiasi
adeputra13
0
270
GOVERNOR ADDRESS 2 :延岡 研一 氏(国際ロータリー第2720地区:2026-2027年度 地区ガバナー・人吉ロータリークラブ ・人吉電気工事株式会社 会長)卓話 : 2026.10.26例会・卓話
2720japanoke
0
700
Zimmerman "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session Seven: Copyright & AI"
baltimoreniso
0
110
2026年度秋学期 統計学 第4回 データを「分布」で見る (2026. 10. 20)
akiraasano
PRO
0
210
CSS3 and Responsive Web Design - Lecture 5 - Web Technologies (1019888BNR)
signer
PRO
1
3.5k
1104
cbtlibrary
0
210
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 4
hiola
0
7.4k
Session 3 - Diplomasi
adeputra13
0
590
Web Architectures - Lecture 2 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
LP2627
cbtlibrary
0
220
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 8
hiola
0
7k
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
600
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Design in an AI World
tapps
1
400
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.5k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
640
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
580