Support for custom parameters
minor version 1.0.1, relase date 2016-11-24
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.
use case
I need XML file containing only products with quantity below some threshold:
- define custom parameter
quantityBelow
of type number - create product condition
product.quantity < runtime.quantityBelow
- associate xml with url
check-quantity
, and mapquantityBelow
parameter to url parameter namedbelow
- open www.yourshop.com/endpoint/check-quantity?below=100 or www.yourshop.com/endpoint/check-quantity?below=8