public class TimerEventCreateHandler extends CreateHandler
Starts a background timer and links it to the passed plan item in order to eventually respond to the completed background timer by completing the plan item.
Constructor and Description |
---|
TimerEventCreateHandler() |
Modifier and Type | Method and Description |
---|---|
static String |
extractRepetitions(HashMap<String,String> timerDefinition)
Extract the timer cycle repetition counter value if it exists.
|
org.flowable.engine.common.impl.interceptor.CommandExecutor |
getCommandExecutor() |
static org.flowable.engine.common.impl.interceptor.CommandExecutor |
getCommandExecutor(org.springframework.context.ApplicationContext applicationContext) |
static Date |
getNextDueDate(HashMap<String,String> timerDefinition,
String baseDateTimeLocalTime)
Calculate the next due date based on a timer definition (timerJson) from VIS, the current time
and a possible baseDateTime (for relative durations).
|
Object |
handleTransition(PlanItem planItem,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners)
Implements this handler’s transition.
|
create
getApplicationContext, getExtensionPoint, setApplicationContext
public Object handleTransition(PlanItem planItem, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners)
TransitionHandler
Implements this handler’s transition.
handleTransition
in class TransitionHandler
planItem
- the plan item on which the transition is applied.transitionData
- transition data (request scope parameters and form data).engineListeners
- CMMN engine call-back methods.persistenceListeners
- CMMN engine persistence methods.null
. In the case of START and MANUAL_START transitions returns a boolean object
indicating whether the plan item immediately completed as a result of the transition.public static Date getNextDueDate(HashMap<String,String> timerDefinition, String baseDateTimeLocalTime)
Calculate the next due date based on a timer definition (timerJson) from VIS, the current time and a possible baseDateTime (for relative durations). <p> <p>Note, VIS does not support timezones in the timer editor panel. VIS times are treated as in local time.</p>
public static String extractRepetitions(HashMap<String,String> timerDefinition)
Extract the timer cycle repetition counter value if it exists. E.g. extract the '1' from "R1/foo/bar". Return "0" if it doesn’t exist.
public org.flowable.engine.common.impl.interceptor.CommandExecutor getCommandExecutor()
public static org.flowable.engine.common.impl.interceptor.CommandExecutor getCommandExecutor(org.springframework.context.ApplicationContext applicationContext)
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.