public interface TimerTrigger extends Trigger
Flow Context Variable | Field | Java Type | Description |
---|---|---|---|
RESULT | result | boolean | A boolean value indicating whether the timer trigger has expired. The trigger can expire if its maximum count is reached, or it reaches the end date or the end time expression is satisfied. If this value is true, the timer trigger has not expired. If the value is false, the timer trigger has expired. |
Modifier and Type | Interface and Description |
---|---|
static class |
TimerTrigger.Timer_Result
The result when a timer trigger fires.
|
Modifier and Type | Field and Description |
---|---|
static int |
INFINITY
Use this constant in the setCount() method to allow the timer trigger to
run forever or until the end date.
|
Modifier and Type | Method and Description |
---|---|
Flow |
addFlow(Action action)
The flow that is followed when this Timer Trigger fires successfully.
|
void |
expire()
Resets the state of this timer trigger as though it had expired and control
had flowed down the expiration path.
|
AllowableBusinessInterval |
getBusinessInterval()
Deprecated.
Use TimerTrigger.getBusinessIntervalNamespace. Deprecated in
Flux 8.0. Will be removed in a future release.
|
java.lang.String |
getBusinessIntervalNamespace()
Returns the optional repository namespace to the business interval associated with this
trigger.
|
long |
getCount()
Returns the total number of times this timer trigger is scheduled to fire.
|
java.util.Date |
getEndDate()
Returns the date when this timer trigger expires.
|
java.lang.String |
getEndTimeExpression()
Returns a time expression, when applied to the date when this timer trigger
is created, that determines when this timer trigger expires.
|
java.util.Date |
getLastTriggerDate()
Returns the date when this trigger was last scheduled to fire.
|
java.lang.String |
getLateTimeWindow()
Returns a time expression that indicates the latest a timer trigger may
fire past its scheduled firing time without being skipped.
|
boolean |
getMakeupFiring()
Indicates whether makeup firings are enabled.
|
long |
getRemainingCount()
Returns the number of remaining scheduled firings for this timer trigger.
|
java.util.Date |
getScheduledTriggerDate()
Returns the date when this timer trigger is scheduled to fire.
|
java.lang.String |
getTimeExpression()
Returns the time expression that governs how frequently this timer trigger
fires.
|
java.util.TimeZone |
getTimeZone()
Returns the time zone associated with this timer trigger.
|
void |
setBusinessInterval(AllowableBusinessInterval businessInterval)
Deprecated.
Use TimerTrigger.setBusinessIntervalNamespace. Deprecated in
Flux 8.0. Will be removed in a future version.
|
void |
setBusinessIntervalNamespace(java.lang.String businessIntervalNamespace)
Sets a repository namespace to a business interval, which is
consulted when time expressions are evaluated.
|
void |
setCount(long count)
Sets the total number of times this timer trigger is scheduled to fire.
|
void |
setEndDate(java.util.Date endDate)
Sets the date such that the timer trigger expires on or after the given end
date.
|
void |
setEndTimeExpression(java.lang.String timeExpression)
Applies the specified time expression to the current date to determine when
this timer trigger expires.
|
void |
setExpirationFlow(Action action)
The flow that is followed when this timer trigger expires.
|
void |
setLateTimeWindow(java.lang.String timeExpression)
Sets a time expression that indicates the latest a timer trigger may fire
past its scheduled firing time without being skipped.
|
void |
setLateTimeWindow(java.lang.String timeExpression,
boolean enableMakeupFiring)
Sets a time expression that indicates the latest a timer trigger may fire
past its scheduled firing time without being skipped.
|
void |
setMakeupFiring(boolean enableMakeupFiring)
Indicates whether makeup firings are enabled.
|
void |
setScheduledTriggerDate(java.util.Date scheduledTriggerDate)
Sets the date when this timer trigger is next scheduled to fire.
|
void |
setTimeExpression(java.lang.String timeExpression)
Sets the time expression that governs how frequently this timer trigger
fires.
|
void |
setTimeZone(java.util.TimeZone timeZone)
Sets the time zone associated with this timer trigger.
|
addFlow, addSignalFlow, clone, execute, getDescription, getFlows, getHiddenVariableNames, getJoinExpression, getName, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutBusinessIntervalNamespace, getTimeoutExpression, getVariableManager, isEndOfRun, isJoinPoint, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, removeFlow, reset, setDescription, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setName, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutBusinessIntervalNamespace, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, verify, verifyOnClient
getRuntimeDataMap, setRuntimeDataMap
static final int INFINITY
setCount(long)
,
Constant Field ValuesFlow addFlow(Action action)
addFlow
in interface Action
action
- The flow that is followed when this timer trigger fires.Action.addFlow(Action, String)
,
EngineHelper.useLastResult(String)
void expire()
@Deprecated AllowableBusinessInterval getBusinessInterval()
java.lang.String getBusinessIntervalNamespace()
long getCount()
getRemainingCount()
,
TimerTrigger.Timer_Result.result
java.util.Date getEndDate()
TimerTrigger.Timer_Result.result
java.lang.String getEndTimeExpression()
TimerTrigger.Timer_Result.result
java.util.Date getLastTriggerDate()
java.lang.String getLateTimeWindow()
setLateTimeWindow(String, boolean)
boolean getMakeupFiring()
setLateTimeWindow(String, boolean)
void setMakeupFiring(boolean enableMakeupFiring)
long getRemainingCount()
getCount()
,
setCount(long)
java.util.Date getScheduledTriggerDate()
java.lang.String getTimeExpression()
java.util.TimeZone getTimeZone()
TimeZone
@Deprecated void setBusinessInterval(AllowableBusinessInterval businessInterval)
businessInterval
- The business interval to use.void setBusinessIntervalNamespace(java.lang.String businessIntervalNamespace)
businessIntervalNamespace
- A repository namespace to a business interval, which is
consulted when time expressions are evaluated.void setCount(long count)
count
- The total number of times this timer trigger is scheduled to
fire.getRemainingCount()
,
TimerTrigger.Timer_Result.result
void setEndDate(java.util.Date endDate)
endDate
- The date such that the timer trigger expires on or after the
given end date.TimerTrigger.Timer_Result.result
void setEndTimeExpression(java.lang.String timeExpression) throws EngineException
timeExpression
- Indicates when this timer trigger expires.EngineException
- If a system error occurs.TimerTrigger.Timer_Result.result
void setExpirationFlow(Action action)
action
- The flow that is followed when this timer trigger expires.void setLateTimeWindow(java.lang.String timeExpression) throws EngineException
timeExpression
- A time expression. If null or empty, the timer
trigger may fire arbitrarily late.EngineException
- If a system error occurs.void setLateTimeWindow(java.lang.String timeExpression, boolean enableMakeupFiring) throws EngineException
timeExpression
- A time expression. If null or empty, the timer
trigger may fire arbitrarily late.enableMakeupFiring
- Allows a "make up" firing to occur.EngineException
- If a system error occurs.void setScheduledTriggerDate(java.util.Date scheduledTriggerDate)
scheduledTriggerDate
- The date when this timer trigger is next
scheduled to fire.void setTimeExpression(java.lang.String timeExpression) throws EngineException
timeExpression
- The time expression that governs how frequently this
timer trigger fires.EngineException
- If a system error occurs.void setTimeZone(java.util.TimeZone timeZone)
timeZone
- The time zone associated with this timer trigger.TimeZone
© 2000-2025 Flux Corporation. All rights reserved.