SlideShare uma empresa Scribd logo
1 de 7
*
*One common scenario involves the need to enrich an
incoming message with information that isn’t provided by
the source system
*Mule currently supports enrichment of flow variables and
message headers only.
*The “enrichment resource” can be any message
processor, outbound connector, processor-chain or
flow-ref.
*By having inline enrich tags for multiple targets
* <?xml version="1.0" encoding="UTF-8"?>
* <mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper"
xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
xmlns:http="http://www.mulesoft.org/schema/mule/http" 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-curre
* http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
* http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
* http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
* http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
* http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd
* http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd">
* <http:listener-config name="HTTP_Listener_8124" host="localhost" port="8124" doc:name="HTTP Listener Configuration"/>
* <data-mapper:config name="XML_To_XML" transformationGraphPath="xml_to_xml.grf" doc:name="XML_To_XML"/>
* <http:request-config name="HTTP_Request_Configuration" host="localhost" port="8124" doc:name="HTTP Request Configuration"/>
* <flow name="encricherFlow">
* <http:listener config-ref="HTTP_Listener_8124" path="/enricher" doc:name="HTTP"/>
* <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
* <enricher doc:name="Message Enricher">
* <flow-ref name="assign_state_using_zip" doc:name="get state variable"/>
* <enrich target="#[sessionvariable:newState]" source="#[xpath://enrichedPayload/state]"/>
* <!-- <enrich target="#[variable:newState]" source="#[xpath://enrichedPayload/state]"/> -->
* <enrich target="#[variable:country]" source="#[xpath://enrichedPayload/country']"/>
* </enricher>
*
* <logger doc:name="Logger"/>
* <data-mapper:transform config-ref="XML_To_XML" doc:name="XML To XML">
* <data-mapper:input-arguments>
* <data-mapper:input-argument key="CountryCode">#[flowVars.country]</data-mapper:input-argument>
* <data-mapper:input-argument key="State">#[sessionVars.newState]</data-mapper:input-argument>
* </data-mapper:input-arguments>
* </data-mapper:transform>
* </flow>
* <sub-flow name="assign_state_using_zip">
* <expression-component doc:name="Andhra"><![CDATA[String response="<enrichedPayload>";
* if( xpath3("//address/zip").equals("518001")){
* response += "<state>AP</state>";
* }
* else if(xpath3("//address/zip").equals("500001")){
* response += "<state>TS</state>";
* }
* else{
* response += "<state>INVALID STATE</state>";
* }
* if( xpath3("//address/country").equalsIgnoreCase("INDIA")){
* response += "<country>+91</country>";
* }
* else if(xpath3("//address/country").equalsIgnoreCase("UK")){
* response += "<state>+44</state>";
* }
* else{
* response += "<state>INVALID Country</state>";
* }
* response += "</enrichedPayload>";
*
* payload = response;
* System.out.println("Enriched Payload is::"+payload);]]></expression-component>
* </sub-flow>
* <flow name="complexencricherFlow">
* <http:listener config-ref="HTTP_Listener_8124" path="/complexenricher" doc:name="HTTP"/>
* <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
* <enricher doc:name="Message Enricher" target="#[flowVars.state]" source="#[xpath2://address/state]">
* <processor-chain doc:name="Processor Chain">
* <http:request config-ref="HTTP_Request_Configuration" path="/state" method="POST" doc:name="HTTP"/>
* <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
* </processor-chain>
* </enricher>
* <data-mapper:transform config-ref="XML_To_XML" doc:name="XML To XML">
* <data-mapper:input-arguments>
* <data-mapper:input-argument key="State">#[flowVars.state]</data-mapper:input-argument>
* </data-mapper:input-arguments>
* </data-mapper:transform>
* </flow>
*
* <flow name="muleencricherFlow">
* <http:listener config-ref="HTTP_Listener_8124" path="/state" doc:name="HTTP"/>
* <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
* <expression-transformer doc:name="Expression">
* <return-argument evaluator="xpath2" expression="/address/zip"/>
* </expression-transformer>
* <choice doc:name="evaluate zip and assingn a state">
* <when expression="#[payload =='518001']">
* <set-payload value="&lt;address&gt;&lt;state&gt;AP&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/>
* </when>
* <when expression="#[payload =='500043']">
* <set-payload value="&lt;address&gt;&lt;state&gt;TS&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/>
* </when>
* <otherwise>
* <set-payload value="&lt;address&gt;&lt;state&gt;Andhra&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/>
* </otherwise>
* </choice>
* </flow>
* </mule>
*
*Thank You

Mais conteúdo relacionado

Mais procurados

Mais procurados (16)

Choice component in mule
Choice component in mule Choice component in mule
Choice component in mule
 
Mule security - spring security manager
Mule  security - spring security managerMule  security - spring security manager
Mule security - spring security manager
 
Mule message processor or routers
Mule message processor or routersMule message processor or routers
Mule message processor or routers
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
 
MuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successfulMuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successful
 
Basic example using for each component
Basic example using for each componentBasic example using for each component
Basic example using for each component
 
Mule esb data weave multi input data
Mule esb data weave multi input dataMule esb data weave multi input data
Mule esb data weave multi input data
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data Weave
 
Mule esb first http connector
Mule esb first http connectorMule esb first http connector
Mule esb first http connector
 
Filter expression in mule demo
Filter expression in mule demoFilter expression in mule demo
Filter expression in mule demo
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
 
Cake PHP 3 Presentaion
Cake PHP 3 PresentaionCake PHP 3 Presentaion
Cake PHP 3 Presentaion
 
MuleSoft ESB scatter-gather and base64
MuleSoft ESB scatter-gather and base64MuleSoft ESB scatter-gather and base64
MuleSoft ESB scatter-gather and base64
 
Mule xml java
Mule xml javaMule xml java
Mule xml java
 
Mule xml java
Mule xml javaMule xml java
Mule xml java
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
 

Destaque

Destaque (20)

Mule message enricher
Mule message enricherMule message enricher
Mule message enricher
 
Mule esb examples
Mule esb examplesMule esb examples
Mule esb examples
 
Mule expression component
Mule expression componentMule expression component
Mule expression component
 
Process file one after another
Process file one after anotherProcess file one after another
Process file one after another
 
Simple groovy example in mule
Simple groovy example in muleSimple groovy example in mule
Simple groovy example in mule
 
Getting anypoint studios all versions
Getting anypoint studios all versionsGetting anypoint studios all versions
Getting anypoint studios all versions
 
Using groovy in mule
Using groovy in muleUsing groovy in mule
Using groovy in mule
 
Mule property placeholder
Mule property placeholderMule property placeholder
Mule property placeholder
 
Collection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBCollection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESB
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Exception handling in mule
Exception handling in muleException handling in mule
Exception handling in mule
 
Java components in Mule
Java components in MuleJava components in Mule
Java components in Mule
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
 
Caching a simple way
Caching a simple wayCaching a simple way
Caching a simple way
 
Mule Collection Aggregator
Mule Collection AggregatorMule Collection Aggregator
Mule Collection Aggregator
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
 
Mule Collection Splitter
Mule Collection SplitterMule Collection Splitter
Mule Collection Splitter
 
Message processor in mule
Message processor in muleMessage processor in mule
Message processor in mule
 
Groovy demo
Groovy demoGroovy demo
Groovy demo
 
Groovy with Mule
Groovy with MuleGroovy with Mule
Groovy with Mule
 

Semelhante a Message enricher in mule

Jersey framework
Jersey frameworkJersey framework
Jersey framework
knight1128
 

Semelhante a Message enricher in mule (20)

Basic example using message properties component
Basic example using message properties componentBasic example using message properties component
Basic example using message properties component
 
Aimaf
AimafAimaf
Aimaf
 
Choice component
Choice componentChoice component
Choice component
 
Wso2 Scenarios Esb Webinar July 1st
Wso2 Scenarios Esb Webinar July 1stWso2 Scenarios Esb Webinar July 1st
Wso2 Scenarios Esb Webinar July 1st
 
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
 
Pdfforge org[1]
Pdfforge org[1]Pdfforge org[1]
Pdfforge org[1]
 
Rapid Prototyping with Solr
Rapid Prototyping with SolrRapid Prototyping with Solr
Rapid Prototyping with Solr
 
Tomcat连接池配置方法V2.1
Tomcat连接池配置方法V2.1Tomcat连接池配置方法V2.1
Tomcat连接池配置方法V2.1
 
Apps1
Apps1Apps1
Apps1
 
Wildcard Filter
Wildcard FilterWildcard Filter
Wildcard Filter
 
Mule xml parsing
Mule xml parsingMule xml parsing
Mule xml parsing
 
Conexion php
Conexion phpConexion php
Conexion php
 
Conexion php
Conexion phpConexion php
Conexion php
 
Mule xml parsing
Mule xml parsingMule xml parsing
Mule xml parsing
 
Jersey framework
Jersey frameworkJersey framework
Jersey framework
 
How to use Cache scope
How to use Cache scopeHow to use Cache scope
How to use Cache scope
 
C99
C99C99
C99
 
C99
C99C99
C99
 
Latihan form login
Latihan form loginLatihan form login
Latihan form login
 
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL SuperpowersPostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
 

Último

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 

Message enricher in mule

  • 1. *
  • 2. *One common scenario involves the need to enrich an incoming message with information that isn’t provided by the source system *Mule currently supports enrichment of flow variables and message headers only. *The “enrichment resource” can be any message processor, outbound connector, processor-chain or flow-ref. *By having inline enrich tags for multiple targets
  • 3. * <?xml version="1.0" encoding="UTF-8"?> * <mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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-curre * http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd * http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd * http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd * http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd * http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd * http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd"> * <http:listener-config name="HTTP_Listener_8124" host="localhost" port="8124" doc:name="HTTP Listener Configuration"/> * <data-mapper:config name="XML_To_XML" transformationGraphPath="xml_to_xml.grf" doc:name="XML_To_XML"/> * <http:request-config name="HTTP_Request_Configuration" host="localhost" port="8124" doc:name="HTTP Request Configuration"/> * <flow name="encricherFlow"> * <http:listener config-ref="HTTP_Listener_8124" path="/enricher" doc:name="HTTP"/> * <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/> * <enricher doc:name="Message Enricher"> * <flow-ref name="assign_state_using_zip" doc:name="get state variable"/> * <enrich target="#[sessionvariable:newState]" source="#[xpath://enrichedPayload/state]"/> * <!-- <enrich target="#[variable:newState]" source="#[xpath://enrichedPayload/state]"/> --> * <enrich target="#[variable:country]" source="#[xpath://enrichedPayload/country']"/> * </enricher> *
  • 4. * <logger doc:name="Logger"/> * <data-mapper:transform config-ref="XML_To_XML" doc:name="XML To XML"> * <data-mapper:input-arguments> * <data-mapper:input-argument key="CountryCode">#[flowVars.country]</data-mapper:input-argument> * <data-mapper:input-argument key="State">#[sessionVars.newState]</data-mapper:input-argument> * </data-mapper:input-arguments> * </data-mapper:transform> * </flow> * <sub-flow name="assign_state_using_zip"> * <expression-component doc:name="Andhra"><![CDATA[String response="<enrichedPayload>"; * if( xpath3("//address/zip").equals("518001")){ * response += "<state>AP</state>"; * } * else if(xpath3("//address/zip").equals("500001")){ * response += "<state>TS</state>"; * } * else{ * response += "<state>INVALID STATE</state>"; * } * if( xpath3("//address/country").equalsIgnoreCase("INDIA")){ * response += "<country>+91</country>"; * } * else if(xpath3("//address/country").equalsIgnoreCase("UK")){ * response += "<state>+44</state>"; * } * else{ * response += "<state>INVALID Country</state>"; * } * response += "</enrichedPayload>"; *
  • 5. * payload = response; * System.out.println("Enriched Payload is::"+payload);]]></expression-component> * </sub-flow> * <flow name="complexencricherFlow"> * <http:listener config-ref="HTTP_Listener_8124" path="/complexenricher" doc:name="HTTP"/> * <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/> * <enricher doc:name="Message Enricher" target="#[flowVars.state]" source="#[xpath2://address/state]"> * <processor-chain doc:name="Processor Chain"> * <http:request config-ref="HTTP_Request_Configuration" path="/state" method="POST" doc:name="HTTP"/> * <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/> * </processor-chain> * </enricher> * <data-mapper:transform config-ref="XML_To_XML" doc:name="XML To XML"> * <data-mapper:input-arguments> * <data-mapper:input-argument key="State">#[flowVars.state]</data-mapper:input-argument> * </data-mapper:input-arguments> * </data-mapper:transform> * </flow> *
  • 6. * <flow name="muleencricherFlow"> * <http:listener config-ref="HTTP_Listener_8124" path="/state" doc:name="HTTP"/> * <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/> * <expression-transformer doc:name="Expression"> * <return-argument evaluator="xpath2" expression="/address/zip"/> * </expression-transformer> * <choice doc:name="evaluate zip and assingn a state"> * <when expression="#[payload =='518001']"> * <set-payload value="&lt;address&gt;&lt;state&gt;AP&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/> * </when> * <when expression="#[payload =='500043']"> * <set-payload value="&lt;address&gt;&lt;state&gt;TS&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/> * </when> * <otherwise> * <set-payload value="&lt;address&gt;&lt;state&gt;Andhra&lt;/state&gt;&lt;/address&gt;" doc:name="Set Payload"/> * </otherwise> * </choice> * </flow> * </mule>