public class ProcessPromotionCreateActionCmdImpl extends AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl implements ProcessPromotionActionCmd
Constructor and Description |
---|
ProcessPromotionCreateActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
This method calls the method of its super class to create a promotion
using mediator.
|
void |
validate()
This method calls the mehtod of its super class and then checks whether a
calculation code record with the same promotion name already exists 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 void validate() throws AbstractApplicationException
validate
in interface AbstractProcessNounActionCmd
validate
in class AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
AbstractApplicationException
- The application exceptionAbstractProcessNounActionCmd.validate()
public void performExecute() throws java.lang.Exception
Note: The rule XML is generated using XSLT transformaiton with the promotion base attributes, however specific configuraiton data for the TargetingCondition, PurchaseCondition and CustomConditions will not be available in this generated rule XML. The complete rule XML will only be built during the promotion activation process according to the final authoring data.
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 AbstractProcessCreateActionUsingBusinessObjectMediatorCmdImpl
java.lang.Exception
- A problem happened during processing the create action.TargetableCommand.performExecute()