Question: currently I am working with Mule ESB. For now, I have 2 flow, lets say Flow 1 and Flow 2. What I need to do is generating the same correlation ID in different flow. The value of the correlation ID itself should be dynamic. I mean, the correlation ID when I run the program on the first try and correlation ID when I run the program on the second time should be different.

For example: when I send first request to my inbound the correlation ID is abcdef (in both flow 1 and flow 2), then after the first request is finish, I send the second request and the correlation ID for the second request is: xyz123455 (in both flow 1 and flow 2).

How to achieve that? Thanks in advance

Answer: 
You could generate dynamically correlation ID in one flow (by say `UUID` class), store it as a `session variable` and use it in another flow.
Simple solution :- just store the correlation ID that is generated dynamically in a session variable and extract the value of the session variable in the other flow that required the same correlation ID