Registering controller command names to match in a behavior rule
If you are creating a new trigger, target, or action that specifies a controller command in its behavior rule, you must register the controller command in a custom version of the marketing component configuration file (wc-admin-component.xml). When you register the controller command, you must also specify the Web application paths to exclude when the controller command is run from that Web application. This ensures that the behavior rule will match only for applicable Web applications that use the controller commands.
If your campaign element template definition does not have a behavior rule that matches a controller command, you can skip this step.
Before you begin
Procedure
- Open HCL Commerce Developer and switch to the Enterprise Explorer view.
-
Create a com.ibm.commerce.marketing-ext folder for your customized
marketing component configuration file at the following path:
workspace_dir\WC\xml\config\com.ibm.commerce.marketing-ext\
If this folder exists and contains a customized version of the wc-admin-component.xml file, or if a customized version exists elsewhere, open the customized version and skip to the next step. If the folder does not exist and contain a customized version, complete these substeps:
-
Register the controller command specified in your behavior rule in the customized version of
the wc-admin-component.xml file:
-
Within the
<_config:configgrouping name="MarketingRuntime">
element, remove any properties that are not set differently from the default marketing component configuration file. The customized file must contain only the differences. - Save and close the customized file.
- To update the changes in a development environment, start, or restart the test servers.