Dynamic XPath filtering in Cast Iron

Posted by jack on March 7, 2016

If you want to select a sub-set of records from an XML variable with recurring child records using a static filter, then use an XPath filter  in a Map Variables activity

  • Right-Click on the root of the recurring node in the destination
  •  Enter the XPath predicate like variableName=’literal’

So much so straightforward – but what if you want to filter on a value you calculated earlier in the orchestration rather than a fixed value? Well, then you can reference a variable in the XPath predicate as

variableName=bpws:getVariableData(‘myFilterVariable’)

where myFilterVariable is the name of a primitive variable.

 

 

Categories: Cast Iron

Comments are closed.