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 Usando o componente Groovy
Search
Alex teles
August 12, 2016
Education
53
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Mulesoft Usando o componente Groovy
Mulesoft Usando o componente Groovy
Alex teles
August 12, 2016
More Decks by Alex teles
See All by Alex teles
Mulesoft configurando conexão com banco AS400 DB2
alexteles10
0
110
Chamando um flow de dentro do Transform Message
alexteles10
0
82
MuleSoft Juntando duas ou mais Listas ordenadas
alexteles10
0
76
MuleSoft Como mockar resultado com transform mensager
alexteles10
0
49
MuleSoft mock com set payload
alexteles10
0
60
Como excluir o conector do facebook Do anyponit
alexteles10
0
74
Baixando conectores que não são nativos
alexteles10
0
64
Editor do Anypoint
alexteles10
0
52
MuleSoft Como fazer um when dentro de um when
alexteles10
0
71
Other Decks in Education
See All in Education
Laura Wilson - The Quarterly PR Pivot
laurawilsonbseo1
1
350
Catecismo 26 #1 - Aula inaugural
cm_manaus
0
180
「機械学習と因果推論」入門① 因果効果とは
masakat0
0
1.9k
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019538FNR)
signer
PRO
1
2.7k
Info Session MSc Computer Science & MSc Applied Informatics
signer
PRO
0
290
「機械学習と因果推論」入門 ③ 漸近効率な推定量と二重機械学習
masakat0
0
690
Stardy 会社紹介資料
stardy
0
720
現場最前線から教えるデータサイエンス1 -ITベンダーにおけるデータサイエンティスト-
hidetoshikawaguchi
0
110
良い塩梅を実現する、AWSネットワーク3分クッキング
masakiokuda
1
260
Protecting Patrons with Digital Vendors
dsalo
0
200
The Lotus and the Frog
vyadav
0
120
Catecismo 26 #2 - Do Credo; Introdução ao 1º artigo
cm_manaus
0
120
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
270
Deep Space Network (abreviated)
tonyrice
0
170
Visualization
eitanlees
152
17k
Code Review Best Practice
trishagee
74
20k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
490
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
460
The Mindset for Success: Future Career Progression
greggifford
PRO
0
360
The Cult of Friendly URLs
andyhume
79
6.9k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Transcript
MULESOFT
Usando o componente Groovy
Visão geral
Vamos criar uma variável com essas configuraçõ es O valor
tem que ta assim #[] para criar ela vazia e set um nome para ela
XML do log com a variavel • <logger message="#[payload]" level="INFO"
doc:name="Logger"/> • <set-variable variableName="variavel_01" value="" doc:name="Variable"/>
Script groovy para saber se o payload esta diferente de
null Código groovy
XML do groovy • <scripting:component doc:name="Groovy"> • <scripting:script engine="Groovy"><![CDATA[if(payload !=
null){ • flowVars ['variavel_01'] = "groovy Payload ok" • } • else{ • flowVars ['variavel_01'] = "Payload vazio" • } • ]]></scripting:script> • </scripting:component>
Imprime a variável com o valor preenchido no groovy
XML Completo
• Obrigado pela sua atenção Fim