used java component to access flow and session vars
TRANSCRIPT
![Page 1: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/1.jpg)
Access Flowvars/Sessionvars
using Java Component in Mule
![Page 2: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/2.jpg)
• I will used my previous project from below. See the link
• http://www.slideshare.net/ChristianHipolito2/flowvar-and-sessionvar-in-mule
![Page 3: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/3.jpg)
Result of Accessing flowVars and sessionVars in Java Component
![Page 4: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/4.jpg)
![Page 5: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/5.jpg)
• Based from the previous slide, I simply added a java component named “Access Flow and Session Var in JAVA”.
• This java allows to read the flowVars and sessionVars and logged them all. The java component also replaced the values of it.
• So you can see on the logs that the values had changed.
![Page 6: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/6.jpg)
Here is the Java Component
![Page 7: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/7.jpg)
The Updated Mule Config
![Page 8: Used Java Component To Access Flow and Session Vars](https://reader033.vdocuments.us/reader033/viewer/2022042906/58a558511a28abef2c8b64c7/html5/thumbnails/8.jpg)
END