Class 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 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:
        execute in interface org.kie.api.command.ExecutableCommand<Void>
      • setProcessInstanceId

        public void setProcessInstanceId​(Long procInstId)
        Specified by:
        setProcessInstanceId in interface org.kie.internal.command.ProcessInstanceIdCommand
      • getProcessInstanceId

        public Long getProcessInstanceId()
        Specified by:
        getProcessInstanceId in interface org.kie.internal.command.ProcessInstanceIdCommand
      • getTimerManager

        protected TimerManager getTimerManager​(org.kie.api.runtime.KieSession ksession)
      • calculateDelay

        protected long calculateDelay​(long delay,
                                      TimerInstance timer)