I have one flow(A) with poll as source with transformation logic and storing result data in session variable. Whenever I tried to use session variable in another flow(B). Note : Flow(B) is not calling from flow A. I am not able to get the value out of it. Because of will not be able to access the session variable. Could you please let me know anyone why?
Asked
Active
Viewed 94 times
1 Answers
0
Session Variable is not a storage for all the flows that you code in a single XML.
It is only for one single end to end thread.
In your case if the flow B is not called from Flow A then you will not get the session Variable.
Go through the documentation again : enter link description here
Use a session variable to set or remove a variable that is tied to a message for its entire lifecycle, across multiple flows, applications, and even servers.
From above it is explained that the session variable can be used accross multiple flow but you will have to note the word " Lifecycle "
This means that the session variable is accessible through out all the flows provided in the lifecycle of the thread

Naveen Raj
- 801
- 11
- 26
-
For same approach instead of session variable I have used ObjectStore to store the value even then I am not able to access it. It is giving null values when trying to get the value using objectStore key. In case of objectStore how behaviour would be. can we access using objectstore. – Gopi Jan 05 '17 at 06:10
-
Now, Facing http://stackoverflow.com/questions/41479209/objectstore-connector-retrieve-issue-in-mule issue could you please check on this. – Gopi Jan 05 '17 at 07:15
-
For me to look into this further , can you post your flow ? If not the exact one at-least a skeleton that I could enhance/correct – Naveen Raj Jan 10 '17 at 04:37