SlideShare a Scribd company logo
VARIABLE
VARIABLE
• Flow variable is use to set variable that can be used anywhere in a flow. Use
a variable transformer to set or remove a variable on the message. The scope of
this variable is limited to the flow where it is set; when the message leaves the
flow, the variable does not carry over to the next flow or application.
CONFIGURATION
• For adding variable, just drag variable
component from the mule platte to the flow.
It will look like as image. In this, there is one
component of variable and a logger which is
used to logging message. This is visual
configuration.
CONTD
• This is the xml view of variable
component. There are two main
properties:
• variableName – name of variable which
will used later in the flow.
• Value – value of variable which variable
will hold.
• XML view
<set-variable variableName="helloMule"
value="Hello mule, we love you."
doc:name="Variable"/>
CONFIGURATION WIZARD
DESCRIPTION
Property Description
Display Name Value which is to be shown in mule flow
Operation Set Variable : Select to set a new variable on your message (as shown
in example screenshot above).
Remove Variable : Select to delete an existing variable from your
message.
Name Specify the name for the variable that you are creating or identify the
name of the variable that you are removing. If you are removing
variables, this field accepts a wildcard "*" character.
Value This field displays only if you are setting a new variable. Specify the
value using either a string or a Mule expression.
MIME Encoding (Optional) Indicates the MIME encoding language. Only appears when
setting a variable.
MIME Type (Optional) Indicates the MIME type. Only appears when setting a
variable.
VARIABLES TYPE SUPPORTED BY MULE
• Mule supports following types of variable transformers
• Session variable
• Record variable
• Flow variable
• CORS variable (in new version of mule)
RECORD VARIABLE
• With batch processing comes the ability to set, remove, and reference variables
associated to individual records. Serialized and persisting only through the
Process phase, a record variable stores information at the record level, rather than
the flow or session level. For example, you can use recordVars to capture whether
or not a customer contact – as a record – already exists in a database.
SESSION VARIABLE
• It can be used to set or remove that is tied to a message for its entire lifecycle,
across multiple flows, applications and even servers.
THANKS

More Related Content

What's hot

Mule dataweave
Mule dataweaveMule dataweave
Mule message
Mule messageMule message
Mule message
kunal vishe
 
Mule JMS Transport
Mule JMS TransportMule JMS Transport
Mule JMS Transport
Rupesh Sinha
 
Introduction to mule Esbs
Introduction to mule EsbsIntroduction to mule Esbs
Introduction to mule Esbs
Prabhat gangwar
 
Mule data weave_10
Mule data weave_10Mule data weave_10
Mule data weave_10
kunal vishe
 
Mule Resequencer Filter
Mule Resequencer FilterMule Resequencer Filter
Mule Resequencer Filter
Ankush Sharma
 
Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
Ramakrishna kapa
 
Mule data weave_5
Mule data weave_5Mule data weave_5
Mule data weave_5
kunal vishe
 
JMS Backchannel
JMS BackchannelJMS Backchannel
JMS Backchannel
Rupesh Sinha
 
Mule esb2
Mule esb2Mule esb2
Mule esb2
himajareddys
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
D.Rajesh Kumar
 
Mule messages and transformers
Mule messages and transformersMule messages and transformers
Mule messages and transformers
Naresh Naidu
 
A short introduction on anypoint transformers
A short introduction on anypoint transformersA short introduction on anypoint transformers
A short introduction on anypoint transformers
Swapnil Sahu
 
Mule VM Transport
Mule VM TransportMule VM Transport
Mule VM Transport
Ankush Sharma
 

What's hot (15)

Mule dataweave
Mule dataweaveMule dataweave
Mule dataweave
 
Mule message
Mule messageMule message
Mule message
 
Mule JMS Transport
Mule JMS TransportMule JMS Transport
Mule JMS Transport
 
Introduction to mule Esbs
Introduction to mule EsbsIntroduction to mule Esbs
Introduction to mule Esbs
 
Mule data weave_10
Mule data weave_10Mule data weave_10
Mule data weave_10
 
Mule Resequencer Filter
Mule Resequencer FilterMule Resequencer Filter
Mule Resequencer Filter
 
Mule message structure and varibles scopes
Mule message structure and varibles scopesMule message structure and varibles scopes
Mule message structure and varibles scopes
 
Mule data weave_5
Mule data weave_5Mule data weave_5
Mule data weave_5
 
101 Pdfsam
101 Pdfsam101 Pdfsam
101 Pdfsam
 
JMS Backchannel
JMS BackchannelJMS Backchannel
JMS Backchannel
 
Mule esb2
Mule esb2Mule esb2
Mule esb2
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
 
Mule messages and transformers
Mule messages and transformersMule messages and transformers
Mule messages and transformers
 
A short introduction on anypoint transformers
A short introduction on anypoint transformersA short introduction on anypoint transformers
A short introduction on anypoint transformers
 
Mule VM Transport
Mule VM TransportMule VM Transport
Mule VM Transport
 

Similar to Variable

Data weave (MuleSoft)
Data weave (MuleSoft)Data weave (MuleSoft)
Data weave (MuleSoft)
Nandu List5
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
Son Nguyen
 
Data weave in Mule
Data weave in MuleData weave in Mule
Data weave in Mule
RaviShankar Mishra
 
Dataweave nagarjuna
Dataweave nagarjunaDataweave nagarjuna
Dataweave nagarjuna
Nagarjuna reddy
 
Data weave
Data weaveData weave
Data weave
manavp
 
Data weave
Data weave Data weave
Data weave
princeirfancivil
 
Data weave
Data weave Data weave
Data weave
Phaniu
 
Dataweave
Dataweave Dataweave
Dataweave
Praneethchampion
 
Data weave
Data weave Data weave
Data weave
irfan1008
 
Data weave
Data weave Data weave
Data weave
mdfkhan625
 
Dataweave Basic
Dataweave BasicDataweave Basic
Dataweave Basic
Nishant Kumar
 
Message structure
Message structureMessage structure
Message structure
Son Nguyen
 
Variables in mule
Variables in muleVariables in mule
Variables in mule
Srinu Prasad
 
Mule tcat server - Server profiles
Mule tcat server - Server profilesMule tcat server - Server profiles
Mule tcat server - Server profiles
Shanky Gupta
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
Sindhu VL
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
Khadhar Koneti
 
Data weave component
Data weave componentData weave component
Data weave component
Sindhu VL
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
Paaras Baru
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
kunal vishe
 

Similar to Variable (20)

Data weave (MuleSoft)
Data weave (MuleSoft)Data weave (MuleSoft)
Data weave (MuleSoft)
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
 
Data weave in Mule
Data weave in MuleData weave in Mule
Data weave in Mule
 
Dataweave nagarjuna
Dataweave nagarjunaDataweave nagarjuna
Dataweave nagarjuna
 
Data weave
Data weaveData weave
Data weave
 
Data weave
Data weave Data weave
Data weave
 
Data weave
Data weave Data weave
Data weave
 
Dataweave
Dataweave Dataweave
Dataweave
 
Data weave
Data weave Data weave
Data weave
 
Data weave
Data weave Data weave
Data weave
 
Dataweave Basic
Dataweave BasicDataweave Basic
Dataweave Basic
 
Message structure
Message structureMessage structure
Message structure
 
Variables in mule
Variables in muleVariables in mule
Variables in mule
 
Mule tcat server - Server profiles
Mule tcat server - Server profilesMule tcat server - Server profiles
Mule tcat server - Server profiles
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
 
Ma3696 Lecture 3
Ma3696 Lecture 3Ma3696 Lecture 3
Ma3696 Lecture 3
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentation
 
Data weave component
Data weave componentData weave component
Data weave component
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
 

More from krishashi

Error handling
Error handlingError handling
Error handling
krishashi
 
Mule validators
Mule validatorsMule validators
Mule validators
krishashi
 
Mule filters
Mule filtersMule filters
Mule filters
krishashi
 
Http connector
Http connectorHttp connector
Http connector
krishashi
 
Mule expression language
Mule expression languageMule expression language
Mule expression language
krishashi
 
Datamapper
DatamapperDatamapper
Datamapper
krishashi
 
Java component
Java componentJava component
Java component
krishashi
 
Logger
LoggerLogger
Logger
krishashi
 
Set payload
Set payloadSet payload
Set payload
krishashi
 
File connector
File connectorFile connector
File connector
krishashi
 
Dataweave
DataweaveDataweave
Dataweave
krishashi
 

More from krishashi (11)

Error handling
Error handlingError handling
Error handling
 
Mule validators
Mule validatorsMule validators
Mule validators
 
Mule filters
Mule filtersMule filters
Mule filters
 
Http connector
Http connectorHttp connector
Http connector
 
Mule expression language
Mule expression languageMule expression language
Mule expression language
 
Datamapper
DatamapperDatamapper
Datamapper
 
Java component
Java componentJava component
Java component
 
Logger
LoggerLogger
Logger
 
Set payload
Set payloadSet payload
Set payload
 
File connector
File connectorFile connector
File connector
 
Dataweave
DataweaveDataweave
Dataweave
 

Recently uploaded

By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 

Recently uploaded (20)

By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 

Variable

  • 2. VARIABLE • Flow variable is use to set variable that can be used anywhere in a flow. Use a variable transformer to set or remove a variable on the message. The scope of this variable is limited to the flow where it is set; when the message leaves the flow, the variable does not carry over to the next flow or application.
  • 3. CONFIGURATION • For adding variable, just drag variable component from the mule platte to the flow. It will look like as image. In this, there is one component of variable and a logger which is used to logging message. This is visual configuration.
  • 4. CONTD • This is the xml view of variable component. There are two main properties: • variableName – name of variable which will used later in the flow. • Value – value of variable which variable will hold. • XML view <set-variable variableName="helloMule" value="Hello mule, we love you." doc:name="Variable"/>
  • 6. DESCRIPTION Property Description Display Name Value which is to be shown in mule flow Operation Set Variable : Select to set a new variable on your message (as shown in example screenshot above). Remove Variable : Select to delete an existing variable from your message. Name Specify the name for the variable that you are creating or identify the name of the variable that you are removing. If you are removing variables, this field accepts a wildcard "*" character. Value This field displays only if you are setting a new variable. Specify the value using either a string or a Mule expression. MIME Encoding (Optional) Indicates the MIME encoding language. Only appears when setting a variable. MIME Type (Optional) Indicates the MIME type. Only appears when setting a variable.
  • 7. VARIABLES TYPE SUPPORTED BY MULE • Mule supports following types of variable transformers • Session variable • Record variable • Flow variable • CORS variable (in new version of mule)
  • 8. RECORD VARIABLE • With batch processing comes the ability to set, remove, and reference variables associated to individual records. Serialized and persisting only through the Process phase, a record variable stores information at the record level, rather than the flow or session level. For example, you can use recordVars to capture whether or not a customer contact – as a record – already exists in a database.
  • 9. SESSION VARIABLE • It can be used to set or remove that is tied to a message for its entire lifecycle, across multiple flows, applications and even servers.