This feature allows changes to promotion configuration files to be applied without having
to restart the HCL Commerce server. The reloading occurs after the specified reload interval
period has elapsed. This feature reloads the following configuration files:
WCSPromotionEngineConfig.xml and wc-admin-component.xml
(-ext), depending on whether the files have been modified since the last reload time.
About this task
When this feature is enabled, any changes to promotion configuration files are
automatically reloaded after the specified reload interval period has elapsed. Ensure that you
monitor the trace for potential errors that might occur as a result of the reload.
Procedure
-
Open HCL Commerce Developer and switch to the Enterprise Explorer
view.
-
Open the promotion engine configuration XML file in an editor:
workspace_dir/WC/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml
-
Within the
<DefaultBehavior>
element, locate the line of code labeled
1 in the following example:
<DefaultBehavior>
<StatelessInvocation>true</StatelessInvocation>
<CheckTargetingAtRuntime>true</CheckTargetingAtRuntime>
<SkipTargetingOnCodeEntered>true</SkipTargetingOnCodeEntered>
<PriceAdjustmentBasedOnStandardOfferPrice>true</PriceAdjustmentBasedOnStandardOfferPrice>
<EvaluationFlowControl>0</EvaluationFlowControl>
<SequenceCombinationLimit>50</SequenceCombinationLimit>
<Debug>false</Debug>
<ReloadInterval>-1</ReloadInterval>1
</DefaultBehavior>
…
-
To enable this feature, change the value of the
<ReloadInterval>
element to
the number of milliseconds to wait for the automatic reload to occur. To disable this feature, set
the reload interval to any negative value.
- Optional:
To change the upper limit for the number of sequences to evaluate for each promotion, change
the value of the
<SequenceCombinationLimit>
element to a different number.
-
Save and close the file.