SlideShare a Scribd company logo
1 of 10
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

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 studioSon Nguyen
 
Data weave
Data weaveData weave
Data weavemanavp
 
Data weave
Data weave Data weave
Data weave Phaniu
 
Message structure
Message structureMessage structure
Message structureSon Nguyen
 
Mule tcat server - Server profiles
Mule tcat server - Server profilesMule tcat server - Server profiles
Mule tcat server - Server profilesShanky Gupta
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentationSindhu VL
 
Data weave documentation
Data weave documentationData weave documentation
Data weave documentationKhadhar Koneti
 
Data weave component
Data weave componentData weave component
Data weave componentSindhu VL
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_componentsPaaras Baru
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2kunal 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
 
Data weave
Data weave Data weave
Data weave
 
Data weave
Data weave Data weave
Data weave
 
Dataweave
Dataweave Dataweave
Dataweave
 
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 handlingkrishashi
 
Mule validators
Mule validatorsMule validators
Mule validatorskrishashi
 
Mule filters
Mule filtersMule filters
Mule filterskrishashi
 
Http connector
Http connectorHttp connector
Http connectorkrishashi
 
Mule expression language
Mule expression languageMule expression language
Mule expression languagekrishashi
 
Java component
Java componentJava component
Java componentkrishashi
 
File connector
File connectorFile connector
File connectorkrishashi
 

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

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 

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.