Since this version you can define custom parameters and used them anywhere in your XML templates. Your XML templates can therefore be much more generic.
Parameters can be used in any expression, including filter expressions. Parameters are replaced by constant values that are provided during runtime, for example via url parameters.
I need XML file containing only products with quantity below some threshold:
- define custom parameter
quantityBelowof type number
- create product condition
product.quantity < runtime.quantityBelow
- associate xml with url
check-quantity, and map
quantityBelowparameter to url parameter named
- open www.yourshop.com/endpoint/check-quantity?below=100 or www.yourshop.com/endpoint/check-quantity?below=8