I have a MuleClient that sends a message to a Mule flow like below but I dont see properties reflected in the mule flow in response section, what scope should I make the properties to be?
MuleMessage msg = new DefaultMuleMessage();
Map<String,Object> propertiesMap = new HashMap<String,Object>();
propertiesMap.put("name", "hello");
msg.addProperties( propertiesMap, PropertyScope.INVOCATION);
then in the flow I tried to access this property like this
message.getInvocationProperty("name")
and it returns null... What am i missing?
code
client.send( "vm://myPath", msg);code
I have also tried thiscode
client.send("vm://myPath", payload, propertiesMap ); – mdev