Class UpdateTimerCommand
- java.lang.Object
-
- org.jbpm.process.instance.command.UpdateTimerCommand
-
- All Implemented Interfaces:
Serializable,org.kie.api.command.Command<Void>,org.kie.api.command.ExecutableCommand<Void>,org.kie.internal.command.ProcessInstanceIdCommand
- Direct Known Subclasses:
RelativeUpdateTimerCommand
public class UpdateTimerCommand extends Object implements org.kie.api.command.ExecutableCommand<Void>, org.kie.internal.command.ProcessInstanceIdCommand
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longdelayprotected longperiodprotected longprocessInstanceIdprotected intrepeatLimitprotected longtimerIdprotected StringtimerName
-
Constructor Summary
Constructors Constructor Description UpdateTimerCommand(long processInstanceId, long timerId, long delay)UpdateTimerCommand(long processInstanceId, long timerId, long period, int repeatLimit)UpdateTimerCommand(long processInstanceId, long timerId, long delay, long period, int repeatLimit)UpdateTimerCommand(long processInstanceId, String timerName, long delay)UpdateTimerCommand(long processInstanceId, String timerName, long period, int repeatLimit)UpdateTimerCommand(long processInstanceId, String timerName, long delay, long period, int repeatLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longcalculateDelay(long delay, TimerInstance timer)Voidexecute(org.kie.api.runtime.Context context)LonggetProcessInstanceId()protected TimerManagergetTimerManager(org.kie.api.runtime.KieSession ksession)protected TimerInstancerescheduleTimer(TimerInstance timer, TimerManager tm)voidsetProcessInstanceId(Long procInstId)StringtoString()
-
-
-
Field Detail
-
processInstanceId
protected long processInstanceId
-
timerId
protected long timerId
-
timerName
protected String timerName
-
delay
protected long delay
-
period
protected long period
-
repeatLimit
protected int repeatLimit
-
-
Constructor Detail
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, String timerName, long delay)
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, String timerName, long period, int repeatLimit)
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, String timerName, long delay, long period, int repeatLimit)
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, long timerId, long delay)
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, long timerId, long period, int repeatLimit)
-
UpdateTimerCommand
public UpdateTimerCommand(long processInstanceId, long timerId, long delay, long period, int repeatLimit)
-
-
Method Detail
-
execute
public Void execute(org.kie.api.runtime.Context context)
- Specified by:
executein interfaceorg.kie.api.command.ExecutableCommand<Void>
-
setProcessInstanceId
public void setProcessInstanceId(Long procInstId)
- Specified by:
setProcessInstanceIdin interfaceorg.kie.internal.command.ProcessInstanceIdCommand
-
getProcessInstanceId
public Long getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceorg.kie.internal.command.ProcessInstanceIdCommand
-
getTimerManager
protected TimerManager getTimerManager(org.kie.api.runtime.KieSession ksession)
-
calculateDelay
protected long calculateDelay(long delay, TimerInstance timer)
-
rescheduleTimer
protected TimerInstance rescheduleTimer(TimerInstance timer, TimerManager tm)
-
-