public class ProcessMarketingTriggerSendTriggersActionCmdImpl extends ProcessMarketingTriggerActionCmdImpl implements ProcessMarketingTriggerActionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | DMTRIGSND_PROCESS_ON_COMMAND_EXIT_WAIT
This string is used when putting entries in DMTRIGSND when the wait timer is from the Process On Command Exit path of detecting a trigger.
|
static java.lang.String | PARAM_REPEAT_SCHEUDLE
Constant for setting the repeat schedule for processing triggers determined by the marketing services.
|
static java.lang.String | SCHEDULE_RUN_DAILY
Constant for setting the repeat schedule to run daily for processing triggers determined by the marketing services.
|
static java.lang.String | SCHEDULE_RUN_ONCE
Constant for setting the repeat schedule to run only once for processing triggers determined by the marketing services.
|
Constructor and Description |
---|
ProcessMarketingTriggerSendTriggersActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | needToProcessScheduledJob(java.sql.Timestamp currentTime, java.lang.Integer activityId, java.lang.Integer storeId)
This method checks if the trigger processing needs to happen.
|
boolean | needToProcessScheduledJobBasedOnRepeatSchedule(java.lang.String repeatSchedule, java.sql.Timestamp currentTime, java.util.Date lastScheduledJobRun)
This method checks if the trigger processing needs to happen based on the time defined in the repeat schedule parameter.
|
void | performExecute()
This method calls the marketing runtime with the wait timer triggers that are ready to be processed and with the bulk email activities that are ready to be processed.
|
void | processBulkEmailActivities(java.sql.Timestamp currentTime)
This method calls the marketing runtime with the bulk email activities that are ready to be processed.
|
void | processExpiredActivities(java.sql.Timestamp currentTime)
This method finds any expired activities and calls the marketing runtime to deactivate them.
|
void | processRepeatTriggers(java.sql.Timestamp currentTime)
This method is used to handle the triggers that should be determined and sent once a day.
|
void | processTimeBasedTriggers(java.sql.Timestamp currentTime)
This method calls the marketing runtime with the wait timer triggers that are ready to be processed.
|
public static final java.lang.String SCHEDULE_RUN_ONCE
public static final java.lang.String SCHEDULE_RUN_DAILY
public static final java.lang.String PARAM_REPEAT_SCHEUDLE
public static final java.lang.String DMTRIGSND_PROCESS_ON_COMMAND_EXIT_WAIT
public ProcessMarketingTriggerSendTriggersActionCmdImpl()
public void performExecute() throws java.lang.Exception
public void processTimeBasedTriggers(java.sql.Timestamp currentTime)
public void processBulkEmailActivities(java.sql.Timestamp currentTime)
public void processExpiredActivities(java.sql.Timestamp currentTime)
public void processRepeatTriggers(java.sql.Timestamp currentTime)
public boolean needToProcessScheduledJob(java.sql.Timestamp currentTime, java.lang.Integer activityId, java.lang.Integer storeId)
public boolean needToProcessScheduledJobBasedOnRepeatSchedule(java.lang.String repeatSchedule, java.sql.Timestamp currentTime, java.util.Date lastScheduledJobRun)