Class TimerEventListenerActivityBehaviour
java.lang.Object
org.flowable.cmmn.engine.impl.behavior.CoreCmmnActivityBehavior
org.flowable.cmmn.engine.impl.behavior.impl.TimerEventListenerActivityBehaviour
- All Implemented Interfaces:
CmmnActivityBehavior,CmmnTriggerableActivityBehavior,PlanItemActivityBehavior
public class TimerEventListenerActivityBehaviour
extends CoreCmmnActivityBehavior
implements PlanItemActivityBehavior
CmmnActivityBehavior implementation for the CMMN Timer Event Listener.- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.flowable.cmmn.model.TimerEventListener -
Constructor Summary
ConstructorsConstructorDescriptionTimerEventListenerActivityBehaviour(org.flowable.cmmn.model.TimerEventListener timerEventListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) protected voidhandleCreateTransition(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) protected booleanisDurationString(String timerString) protected booleanisRepetitionString(String timerString) voidonStateTransition(CommandContext commandContext, DelegatePlanItemInstance planItemInstance, String transition) prepareRepeat(String dueDate, Clock clock) protected voidremoveTimerJob(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) protected ObjectresolveTimerExpression(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) protected voidscheduleTimerJob(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, Object timerValue, Date timerDueDate, boolean isRepeating) protected booleantimerJobForPlanItemInstanceExists(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) voidtrigger(DelegatePlanItemInstance planItemInstance) Methods inherited from class org.flowable.cmmn.engine.impl.behavior.CoreCmmnActivityBehavior
executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.cmmn.engine.impl.behavior.CmmnActivityBehavior
execute
-
Field Details
-
timerEventListener
protected org.flowable.cmmn.model.TimerEventListener timerEventListener
-
-
Constructor Details
-
TimerEventListenerActivityBehaviour
public TimerEventListenerActivityBehaviour(org.flowable.cmmn.model.TimerEventListener timerEventListener)
-
-
Method Details
-
onStateTransition
public void onStateTransition(CommandContext commandContext, DelegatePlanItemInstance planItemInstance, String transition) - Specified by:
onStateTransitionin interfacePlanItemActivityBehavior
-
execute
- Specified by:
executein classCoreCmmnActivityBehavior
-
trigger
- Specified by:
triggerin interfaceCmmnTriggerableActivityBehavior
-
handleCreateTransition
protected void handleCreateTransition(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) -
timerJobForPlanItemInstanceExists
protected boolean timerJobForPlanItemInstanceExists(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) -
scheduleTimerJob
protected void scheduleTimerJob(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, Object timerValue, Date timerDueDate, boolean isRepeating) -
removeTimerJob
protected void removeTimerJob(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) -
resolveTimerExpression
protected Object resolveTimerExpression(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) -
isRepetitionString
-
isDurationString
-
prepareRepeat
-