Extension Point: Customer Data Tag Set Populator
Basics
Parameter | Value |
---|---|
Extension Point Key | CUSTOMER_TAG_SET_POPULATOR |
Extension Point Name | Customer Data Tag Set Populator |
Extension Interface | CustomerTagSetPopulator |
Supports Multiple Extensions? | Yes |
Selector Type | Store |
Available Since | 1.3.0 |
Use Cases
Extensions implementing this Extension Point have access to the customer and account objects and can use that information to populate fields in the Tagging Framework. The values in the tagging framework can then be used for promotion and price list assignment conditions.
Methods
collectTagValues
The collectTagValues
method is invoked at the beginning of each Cortex API request. It can use data from the current customer or account record to populate fields in the Tag Set.
Extension Sample
@Extension
@XPFAssignment(extensionPoint = XPFExtensionPointEnum.CUSTOMER_TAG_SET_POPULATOR, priority = 100)
public class CustomerStatusTagPopulator extends XPFExtensionPointImpl implements CustomerTagSetPopulator {
private static final String CUSTOMER_STATUS = "customer-status";
@Override
public Map<String, Object> collectTagValues(final XPFCustomerTagSetContext xpfCustomerTagSetContext) {
return Collections.singletonMap(CUSTOMER_STATUS, xpfCustomerTagSetContext.getCustomer().getStatus().name());
}
}