Let's say that I have a blue mapping node. In the first step, I want to parse the source message and create an xml object. In subsequent steps, I want to re-use that xml object to populate the output message. One way to do it is to store a text string in the message cache, but then you have to parse it over and over in each step
STEP 1
messageCache.setValue('soap',
qie.base64Decode(
source.getNode('/Envelope/Body/ProvideAndRegisterDocumentSetRequest/Document')));
STEP 2
var document = qie.parseXMLString(messageCache.getValue('soap'));
var allergies = document.getNode('/ClinicalDocument/component/structuredBody/allergies/text/content');
message.setJSONString('/all', allergies);
STEP 3
var document = qie.parseXMLString(messageCache.getValue('soap'));
var procedures = document.getNode('/ClinicalDocument/component/structuredBody/procedures/text/content');
message.setJSONString('/procedures', procedures);
What I'm looking for is a way to store the XML object created from qie.parseXMLString() in a variable and persist it from step to step (or from node to node)