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.
|
getChangeBusinessObjectMediator, getChangeControlBusinessObjectMediator
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGeneric, setActionExpression, setNoun, setPersistentObjects
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 behaviour.
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
TargetableCommand.performExecute()
public void validate() throws AbstractApplicationException
validate
in interface AbstractProcessNounActionCmd
AbstractApplicationException
- The application exception from Promotion