title: OSB shared variable between request and response
body: <p>I am trying to generate a unique id using <code>fn-bea:uuid()</code> and insert this shared variable into inbound and outbound message. </p>
  
  <p>But I do't know how to create a variable can be shared between request and response. It seems that I can not drag anything before the RouteNode, now I can only have two insert actions one for request and one for response. In this way there will be two different UUIDs. Is there any way I can create a shared variable and insert the same variable into request and response?</p>
  
  <p><a href="https://i.stack.imgur.com/tP4hZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tP4hZ.png" alt="enter image description here"></a></p>
  
  <p><strong>Update:</strong> 
  I see if I put a assign activity right before the request's insert.(Screenshot 2) the variable created also can be used in the response insert activity. And I tested it, it is the same value. This works good. But I am having another problem here. I tried to use insert activity insert a the variable into inbound and outbound message. I set it to "as first child of" inbound for request and "as first child of" outbound for response. I can see the variable is successfully added into the inbound message, but the outbound does not work. Just for testing I try to set the insert to "as first child of" header for response, and output the header I can see its added successfully, means its working for header, but not outbound. Any idea why this is happening? </p>
  
  <p><a href="https://i.stack.imgur.com/f0bjV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f0bjV.png" alt="enter image description here"></a></p>