Skip to main content
Version: 1.3.x

Extension Point: Customer Data Tag Set Populator

Basics​

ParameterValue
Extension Point KeyCUSTOMER_TAG_SET_POPULATOR
Extension Point NameCustomer Data Tag Set Populator
Extension InterfaceCustomerTagSetPopulator
Supports Multiple Extensions?Yes
Selector TypeStore
Available Since1.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());
}
}