public class ProcessPromotionDeactivateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessPromotionActionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ProcessPromotionDeactivateActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | performExecute()
This method changes the promotion status to "Inactive", creates a auditing row of the current promotion rule XML in PX_PROMOAUDIT table, and it also sets the state of associated CalulationCode record to "not Published".
|
void | validate()
This method validates if the promotion can be deactivated or not.
|
public static final java.lang.String COPYRIGHT
public ProcessPromotionDeactivateActionCmdImpl()
public void performExecute() throws java.lang.Exception
Note: During the deactivation process, if the value of promotion control parameter is "CMC", the rule XML will be re-generated using XSLT transformaiton with the promotion base attributes, specific configuraiton data for the TargetingCondition, PurchaseCondition and CustomConditions will not be available in this generated rule XML. Records in CALCODEMGP, CATENCALCD,CATGPCALCD and SHPMODCLCD that are related to this promotion will also be removed. These informaiton will be rebuilt according to the final authoring data during the promotion activation process. Otherwise only the status of the rule XML will be updated with "Inactive" status.
When override this method, it is recommended to call the method of the super class in order to maintain the default behavior.
public void validate() throws AbstractApplicationException