SlideShare una empresa de Scribd logo
1 de 10
Ravinder
 This component evaluates an expression.
 It accepts either a user-defined expression or a reference to a file.
 The processor view is as below.
 This component evaluates a range of expressions.
 The Evaluator and Expression properties are required.
 The Expression Transformer executes one or more expressions on the
current message.
 The result of these expressions becomes the payload of the current
message.
Minimum Configuration:
 An expression evaluator and the expression itself.
 In the below figure, Check the Return source if Null box if you want the
message payload source to be returned without modification when all
expressions evaluate to null.
 Use the Advanced tab to optionally configure the return arguments.
 For each return argument, you enter or select from the pull-down list its
expression evaluator. Then enter the expression to use. If you set Evaluator
to custom, you also need to specify the custom evaluator. If you are using a
custom expression evaluator, you must first have registered the custom
evaluator with the Expression Evaluator Manager. Expression syntax varies
depending on the evaluator.
 When you have multiple expressions for return arguments, by default
expression evaluation returns an error and stops when an expression
evaluates to null. Check the Optional box if you want expression evaluation
to continue to the next expression when an expression evaluates to null.
 The evaluators should be of this enumeration '[attachment, attachments,
attachments-list, bean, endpoint, exception-type, function, groovy, header,
headers, headers-list, json, json-node, jxpath, map-payload, message,
mule, ognl, payload, process, regex, string, variable, xpath, xpath2, xpath-
node, custom]'.
Example:
Description:
 1. Use http connector to trigger the flow.
 2. Expression component to set the Employee Details as outbound
properties.
 3. Message Properties component to set a Session Variable.
 4. Pass all the properties to another flow using a http outbound end point
and add session properties to the header as session expires after every flow.
 5. The data received will be of Byte Array Stream so use an Object to String
Transformer.
 6. Check the attached Session variable using the "#[message]" MEL in Logger
component.
 7. Get all the details from the inbound properties and use a map object to
set-payload. In a similar fashion List can also be used.
 8. Transform the payload type from Object to String.
 9. Evaluate if the payload type is of String or not using Expression Filter. If
the payload is of type String the flow execution forwards.
 10. Use choice router to check for a specific text in the payload and print
his Server IP using Mule Expression Transformer.
Thank You All

Más contenido relacionado

La actualidad más candente

Krazykoder struts2 annotations
Krazykoder struts2 annotationsKrazykoder struts2 annotations
Krazykoder struts2 annotations
Krazy Koder
 
Java Script Language Tutorial
Java Script Language TutorialJava Script Language Tutorial
Java Script Language Tutorial
vikram singh
 

La actualidad más candente (20)

User defined functions
User defined functionsUser defined functions
User defined functions
 
Operator Overloading and Scope of Variable
Operator Overloading and Scope of VariableOperator Overloading and Scope of Variable
Operator Overloading and Scope of Variable
 
Create and analyse programs
Create and analyse programsCreate and analyse programs
Create and analyse programs
 
Java 8 Streams And Common Operations By Harmeet Singh(Taara)
Java 8 Streams And Common Operations By Harmeet Singh(Taara)Java 8 Streams And Common Operations By Harmeet Singh(Taara)
Java 8 Streams And Common Operations By Harmeet Singh(Taara)
 
Notes: Verilog Part 5 - Tasks and Functions
Notes: Verilog Part 5 - Tasks and FunctionsNotes: Verilog Part 5 - Tasks and Functions
Notes: Verilog Part 5 - Tasks and Functions
 
Active Object
Active ObjectActive Object
Active Object
 
2CPP11 - Method Overloading
2CPP11 - Method Overloading2CPP11 - Method Overloading
2CPP11 - Method Overloading
 
Krazykoder struts2 annotations
Krazykoder struts2 annotationsKrazykoder struts2 annotations
Krazykoder struts2 annotations
 
Functions and tasks in verilog
Functions and tasks in verilogFunctions and tasks in verilog
Functions and tasks in verilog
 
Java Script Language Tutorial
Java Script Language TutorialJava Script Language Tutorial
Java Script Language Tutorial
 
Notes of Important Programming Fundamental Questions
Notes of Important Programming Fundamental QuestionsNotes of Important Programming Fundamental Questions
Notes of Important Programming Fundamental Questions
 
Type conversions
Type conversionsType conversions
Type conversions
 
4. function
4. function4. function
4. function
 
2CPP12 - Method Overriding
2CPP12 - Method Overriding2CPP12 - Method Overriding
2CPP12 - Method Overriding
 
C++ Functions
C++ FunctionsC++ Functions
C++ Functions
 
Implicit and explicit sequence control with exception handling
Implicit and explicit sequence control with exception handlingImplicit and explicit sequence control with exception handling
Implicit and explicit sequence control with exception handling
 
Linq & lambda overview C#.net
Linq & lambda overview C#.netLinq & lambda overview C#.net
Linq & lambda overview C#.net
 
Php, mysq lpart3
Php, mysq lpart3Php, mysq lpart3
Php, mysq lpart3
 
Architectural patterns part 4
Architectural patterns part 4Architectural patterns part 4
Architectural patterns part 4
 
Demystifying Eta Expansion
Demystifying Eta ExpansionDemystifying Eta Expansion
Demystifying Eta Expansion
 

Destacado (6)

La nobleza (2)
La nobleza (2)La nobleza (2)
La nobleza (2)
 
Campesinos en la sociedad feudal
Campesinos en la sociedad feudalCampesinos en la sociedad feudal
Campesinos en la sociedad feudal
 
La nobleza
La noblezaLa nobleza
La nobleza
 
Los nobles
Los noblesLos nobles
Los nobles
 
Ejes cronológicos Historia de España
Ejes cronológicos Historia de EspañaEjes cronológicos Historia de España
Ejes cronológicos Historia de España
 
Adjetivas y sustantivas analizadas
Adjetivas y sustantivas analizadasAdjetivas y sustantivas analizadas
Adjetivas y sustantivas analizadas
 

Similar a Mule expression

Similar a Mule expression (20)

Mule expression component
Mule expression componentMule expression component
Mule expression component
 
Userdefined functions brief explaination.pdf
Userdefined functions brief explaination.pdfUserdefined functions brief explaination.pdf
Userdefined functions brief explaination.pdf
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
 
Data weave (MuleSoft)
Data weave (MuleSoft)Data weave (MuleSoft)
Data weave (MuleSoft)
 
LISP:Program structure in lisp
LISP:Program structure in lispLISP:Program structure in lisp
LISP:Program structure in lisp
 
LISP: Program structure in lisp
LISP: Program structure in lispLISP: Program structure in lisp
LISP: Program structure in lisp
 
Lexical and Parser tool for CBOOP program
Lexical and Parser tool for CBOOP programLexical and Parser tool for CBOOP program
Lexical and Parser tool for CBOOP program
 
Java script
Java scriptJava script
Java script
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
 
JavaScript.pptx
JavaScript.pptxJavaScript.pptx
JavaScript.pptx
 
Data weave component
Data weave componentData weave component
Data weave component
 
Types of MessageRouting in Mule
Types of MessageRouting in MuleTypes of MessageRouting in Mule
Types of MessageRouting in Mule
 
GUI Programming in JAVA (Using Netbeans) - A Review
GUI Programming in JAVA (Using Netbeans) -  A ReviewGUI Programming in JAVA (Using Netbeans) -  A Review
GUI Programming in JAVA (Using Netbeans) - A Review
 
Routing in mule
Routing in muleRouting in mule
Routing in mule
 
Function in C++
Function in C++Function in C++
Function in C++
 
Annotations in Java with Example.pdf
Annotations in Java with Example.pdfAnnotations in Java with Example.pdf
Annotations in Java with Example.pdf
 
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its ModuleMuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
 
Chapter _4_Semantic Analysis .pptx
Chapter _4_Semantic Analysis .pptxChapter _4_Semantic Analysis .pptx
Chapter _4_Semantic Analysis .pptx
 
Python_UNIT-I.pptx
Python_UNIT-I.pptxPython_UNIT-I.pptx
Python_UNIT-I.pptx
 
lazy evaluation
lazy evaluationlazy evaluation
lazy evaluation
 

Más de Ravinder Singh (11)

Mule in a nutshell
Mule in a nutshellMule in a nutshell
Mule in a nutshell
 
Mule java part-4
Mule java part-4Mule java part-4
Mule java part-4
 
Mule java part-3
Mule java part-3Mule java part-3
Mule java part-3
 
Mule java part-2
Mule java part-2Mule java part-2
Mule java part-2
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule system properties
Mule system propertiesMule system properties
Mule system properties
 
Mule enricher
Mule enricher Mule enricher
Mule enricher
 
Mule properties
Mule propertiesMule properties
Mule properties
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 
Jms topics
Jms topicsJms topics
Jms topics
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Mule expression

  • 2.  This component evaluates an expression.  It accepts either a user-defined expression or a reference to a file.  The processor view is as below.
  • 3.  This component evaluates a range of expressions.  The Evaluator and Expression properties are required.
  • 4.  The Expression Transformer executes one or more expressions on the current message.  The result of these expressions becomes the payload of the current message. Minimum Configuration:  An expression evaluator and the expression itself.  In the below figure, Check the Return source if Null box if you want the message payload source to be returned without modification when all expressions evaluate to null.  Use the Advanced tab to optionally configure the return arguments.
  • 5.  For each return argument, you enter or select from the pull-down list its expression evaluator. Then enter the expression to use. If you set Evaluator to custom, you also need to specify the custom evaluator. If you are using a custom expression evaluator, you must first have registered the custom evaluator with the Expression Evaluator Manager. Expression syntax varies depending on the evaluator.
  • 6.  When you have multiple expressions for return arguments, by default expression evaluation returns an error and stops when an expression evaluates to null. Check the Optional box if you want expression evaluation to continue to the next expression when an expression evaluates to null.  The evaluators should be of this enumeration '[attachment, attachments, attachments-list, bean, endpoint, exception-type, function, groovy, header, headers, headers-list, json, json-node, jxpath, map-payload, message, mule, ognl, payload, process, regex, string, variable, xpath, xpath2, xpath- node, custom]'.
  • 8. Description:  1. Use http connector to trigger the flow.  2. Expression component to set the Employee Details as outbound properties.  3. Message Properties component to set a Session Variable.  4. Pass all the properties to another flow using a http outbound end point and add session properties to the header as session expires after every flow.  5. The data received will be of Byte Array Stream so use an Object to String Transformer.
  • 9.  6. Check the attached Session variable using the "#[message]" MEL in Logger component.  7. Get all the details from the inbound properties and use a map object to set-payload. In a similar fashion List can also be used.  8. Transform the payload type from Object to String.  9. Evaluate if the payload type is of String or not using Expression Filter. If the payload is of type String the flow execution forwards.  10. Use choice router to check for a specific text in the payload and print his Server IP using Mule Expression Transformer.