public interface MarketingServicesFEPTaskCmd extends TaskCommand
MarketingServicesTaskCmd
is extended.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 |
manageCampaignElementVariables(java.util.Map variables,
Dmeletemplate dmeletemplate,
java.lang.Integer elementId,
java.lang.Integer activityId)
This method is called when loading an activity into the cache for each element in the activity that is being cached.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
void manageCampaignElementVariables(java.util.Map variables, Dmeletemplate dmeletemplate, java.lang.Integer elementId, java.lang.Integer activityId)
DMELEMENTNVP
table. However, the runtime command needs the dictionaryName for its implementation. This method can be implemented
to lookup the dictionaryName and cache the result.
super.manageCampaignElementVariables(variables, dmeletemplate, elementId, activityId); Object nvpToSwitch = variables.get("dictionaryId"); if (nvpToSwitch != null) { String switchedNvp = findDictionaryNameById(nvpToSwitch); variables.put("dictionaryName", switchedNvp); // this creates a new cached nvp dictionaryName // alternatively, you could update the existing variable // variables.put("dictionaryId", switchedNvp); }
variables
- A Map
containing the authoring information. This is the data from the DMELEMENTNVP
database table.dmeletemplate
- The database information associated with the element template for the element being loaded.elementId
- The ID of the element being loaded.activityId
- The ID of the activity to which the element belongs.