public interface MarketingCampaignElementTaskCmd
extends com.ibm.websphere.command.CacheableCommand
For a target:
validateParameters
to validate
the element during activity activation. The method checks that
all the required data has been provided and is correct.performExecute
and use the method
setReturnValue
to identify if the customer meets
the target criteria.For an action:
validateParameters
to validate
the element during activity activation. The method checks that
all the required data has been provided and is correct.performExecute
. If appropriate, use the method
addEMarketingSpotDataBean
to return data to
an e-Marketing Spot. Call the method setReturnValue(true)
unless the customer should not move past the action in the activity flow.For a trigger:
validateParameters
to validate
the element during activity activation. The method checks that
all the required data has been provided and is correct.forwardTriggersForProcessing()
to
determine the set of customers who should participate in the associated
dialog activity.The following techniques can be used to share data during the evaluation of an activity:
getTriggerParametersMap().put(Object, Object)
.
Campaign elements that are called after this campaign element in the e-Marketing
Spot evaluation (in the same web activity, as well as other web activities scheduled
to the e-Marketing Spot) will have access to the updated trigger parameters.
Campaign elements that are called after this campaign element in a dialog activity
(in the same dialog activity) will have access to the updated trigger parameters.
Updating the trigger parameters can effect the evaluation of the activity.
putTemporarySharedDataObject
,
and existing information can be retrieved by calling the method
getTemporarySharedDataObject
.
Campaign elements that are called after this campaign element in the e-Marketing
Spot evaluation (in the same web activity, as well as other web activities scheduled
to the e-Marketing Spot) will have access to the temporary shared data area.
Campaign elements that are called after this campaign element in a dialog activity
(in the same dialog activity) will have access to the temporary shared data area.
getPreviewReport().add(String)
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
Default implementation class for this command.
|
Modifier and Type | Method and Description |
---|---|
void |
forwardTriggersForProcessing()
This method finds all the users associated with a Trigger element, and forwards the trigger
for each user.
|
java.util.List |
getEMarketingSpotDataBeans()
This method returns to the marketing services the list of
EMarketingSpotDataBean objects
that contain the information of what to display to the customer
in the e-Marketing Spot. |
java.lang.String |
getMarketingSpotBehavior(java.util.Map elementParameters)
This method gets the caching behavior for the marketing campaign element
and how it should affect the e-Marketing Spot caching behavior.
|
java.util.Map |
getNewElementParameters()
This method gets the new element parameters that were created in the
DMELEMENTNVP table for this element during activation of the activity.
|
boolean |
getReturnValue()
This method returns the return value set by the task command implementation.
|
void |
returnEMarketingSpotDataBeans()
This method returns to the marketing services the list of
EMarketingSpotDataBean objects
that contain the information of what to display to the customer
in the e-Marketing Spot. |
void |
setActivity(Activity activity)
This method sets the activity business object associated with the element.
|
void |
setElementId(java.lang.Integer elementId)
This method sets the ID of the element.
|
void |
setElementParameters(java.util.Map parameters)
This method set the parameters associated with the element.
|
void |
setExperimentTestElements(java.util.List experimentTestElements)
This method sets the set of experiments and test elements that have been passed along the activity flow.
|
void |
setNewElementParameter(java.lang.String name,
java.lang.String value)
This method sets that a new element parameter has been created in the
DMELEMENTNVP table for this element during activation of the activity.
|
void |
setPreviewReport(java.util.List previewReport)
This method sets the list of information about the activity evaluation on the e-Marketing Spot.
|
void |
setReturnValue(boolean value)
This method sets the return value of the task command.
|
void |
setTemporarySharedData(java.util.Map temporarySharedData)
This method sets the map used to store temporary data that can be passed
between all the campaign elements when evaluating an e-Marketing Spot.
|
void |
setTriggerParameters(java.util.Map triggerParameters)
This method sets the trigger parameters.
|
void |
setTriggerParameters(java.lang.String triggerParameters)
This method sets the trigger parameters.
|
java.util.List |
validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for
the campaign element.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
void setTriggerParameters(java.lang.String triggerParameters)
triggerParameters
- The trigger parameters from the current request.void setTriggerParameters(java.util.Map triggerParameters)
triggerParameters
- The trigger parameters from the current request.java.util.Map getNewElementParameters()
void setNewElementParameter(java.lang.String name, java.lang.String value)
name
- The name of the name-value pair.value
- The value of the name-value pair.void setTemporarySharedData(java.util.Map temporarySharedData)
temporarySharedData
- The map of temporary data to share between campaign elements.void setActivity(Activity activity)
activity
- The activity business object associated with the element.void setElementId(java.lang.Integer elementId)
elementId
- The ID of the element.void setElementParameters(java.util.Map parameters)
DMELEMENTNVP
database table.parameters
- The name value pairs available to the task command implementation.void setExperimentTestElements(java.util.List experimentTestElements)
experimentTestElements
- The set of experiments and test elements that have been passed along the activity flow.boolean getReturnValue()
void setReturnValue(boolean value)
value
- The return value of the task command.void returnEMarketingSpotDataBeans()
EMarketingSpotDataBean
objects
that contain the information of what to display to the customer
in the e-Marketing Spot.
The method addEMarketingSpotDataBean
should be called by the campaign element task command
with each EMarketingSpotDataBean
.
This method is no longer used. The marketing services call the method getEMarketingSpotDataBeans
.java.util.List getEMarketingSpotDataBeans()
EMarketingSpotDataBean
objects
that contain the information of what to display to the customer
in the e-Marketing Spot.
The method addEMarketingSpotDataBean
should be called by the campaign element task command
with each EMarketingSpotDataBean
.
The marketing services will call this method to process the data beans that have been set
by the task command.EMarketingSpotDataBean
objects.java.util.List validateParameters(java.util.Map elementParameters)
elementParameters
- The name value pairs for this element.ApplicationError
exceptions
that contains any validation errors. The list may be empty or be null
.void forwardTriggersForProcessing()
void setPreviewReport(java.util.List previewReport)
previewReport
- A list of information about the activity evaluation on the e-Marketing Spot..java.lang.String getMarketingSpotBehavior(java.util.Map elementParameters)
elementParameters
- The name value pairs for this element.