public class RemoveMarkersFromOrder extends MarkerAction implements OrderMarkerConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mMarkerConfigurationORDER_MARKER_RESOURCE_NAME, ORDER_PROPERTY_NAME, sResourceBundleALLOW_DUPLICATES, ANY_VALUE, DEFAULT_MARKER_ID_PROPERTY_NAME, DEFAULT_MARKER_ITEM_TYPE, DEFAULT_MARKER_PROPERTY_NAME, DEFAULT_MARKER_SORT_PROPERTY_NAME, MARKER_CREATIONDATE_PROPERTY_NAME, MARKER_DATA_PROPERTY_NAME, MARKER_DUPLICATIONMODE_PROPERTY_NAME, MARKER_KEY_PROPERTY_NAME, MARKER_OWNER_PROPERTY_NAME, MARKER_RESOURCE_NAME, MARKER_VALUE_PROPERTY_NAME, NO_DUPLICATES, PARAM_DATA, PARAM_DUPMODE, PARAM_EXTENDED_PROPERTIES, PARAM_ITEM, PARAM_ITEM_ID, PARAM_KEY, PARAM_MARKED_ITEM_TYPE, PARAM_MARKER_ITEM_TYPE, PARAM_MARKER_MANAGER, PARAM_MARKER_PROPERTY_NAME, PARAM_VALUE, REPLACE_DUPLICATES, sResourceBundle| Constructor and Description |
|---|
RemoveMarkersFromOrder() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction(ProcessExecutionContext pContext)
Removes the marker(s) from the order.
|
protected java.lang.String |
getData(ProcessExecutionContext pContext)
Returns the data parameter.
|
protected Order |
getOrderToUse(ProcessExecutionContext pContext)
This method is called by the doAction method to return the Order
that's used in the order marker manager API calls.
|
void |
initialize(java.util.Map pParameters)
Verifies required parameters are provided
|
configure, doesParameterExist, executeAction, getDuplicationMode, getExtendedProperties, getKey, getMarkedItemType, getMarkerConfiguration, getMarkerItemType, getMarkerPropertyName, getValue, setMarkerConfigurationexecute, execute, getActionName, getParameterExpression, getParameterValue, storeOptionalParameter, storeRequiredMutableParameter, storeRequiredParameter, toString, toStringprotected java.lang.String getData(ProcessExecutionContext pContext) throws ProcessException
If the data parameter is not an available parameter it means the UI did not allow the user to specify it. This is probably because of a customized version of the action that doesn't allow it to be specified.
In that case, we set it to ANY_VALUE for the comparison. The data param is identified in the parameter map by the key PARAM_DATA
getData in class MarkerActionProcessExceptionprotected Order getOrderToUse(ProcessExecutionContext pContext)
The order is either extracted from the event or from the current session's shopping cart.
public void initialize(java.util.Map pParameters)
throws ProcessException
Required parameters:
PARAM_KEY
initialize in interface Actioninitialize in class MarkerActionProcessException - if key is no providedExpressionpublic void doAction(ProcessExecutionContext pContext) throws ProcessException
doAction in class MarkerActionProcessException - if the action can not be executed