I am creating a java call out to read variables that is being created. I have found out that we can call the
MessageContext.getVariable("variableX")
and we could also do the following.
MessageContext.getMessage().getVariable("variableX")
What is the difference between the two? When should we get variable at MessageContext level versus getting variable at Message level?
I couldn’t find any historical post on the topic nor any product documentation about what I have mentioned.
I found the following documentation from your sample codes: https://github.com/apigee/api-platform-samples
MessageContext.getVariable(String)Gets the named flow variable from Edge.
Message.getVariable(String)Gets a specific property associated with the message.
What is the difference between a flow variable and a message variable property?