LoadStoreIds transformer¶
Creates a new array entry in a row with given name and value is an array of store ids.
There are multiple ways to load store ids:
static
- load store ids from a static list of store keys, given by thestoreNames
attributefrom_row
- load store ids from an array of keys in the row, given by thestoreNames
attribute as the field name containing the arrayfrom_config
- load store ids from an array of keys in the config, given by thestoreNames
attribute as the config key containing the array
Usage:
<load-store-ids method="static" storeNames="store1,store2" to="targetFieldName" />
<load-store-ids method="from_config" storeNames="configKey" to="targetFieldName" />
<load-store-ids method="from_row" storeNames="stores" to="targetFieldName" />
Attributes:
method
- method to be used to load store idsstoreNames
- comma separated list of store namesto
- name of the field to be created