Class StateTimerJob

  • All Implemented Interfaces:
    IJobWrapper

    public class StateTimerJob
    extends Object
    implements IJobWrapper
    Job for triggering the new workflow engine when a form record remains in a certain state for a certain amount of time.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getJobDetails

        public org.quartz.JobDetail getJobDetails()
        Specified by:
        getJobDetails in interface IJobWrapper
        Returns:
        JobDetail the data of an scheduled task
      • forTrigger

        public static StateTimerJob forTrigger​(Vorgang formRecord,
                                               WorkflowTrigger trigger,
                                               FcStateTimerProps props,
                                               Instant triggerFireInstant)
        A new job for invoking a trigger of the new workflow engine.
        Parameters:
        formRecord - The form record for which to create the job.
        trigger - The workflow trigger for which to create the job.
        props - The properties model of the trigger.
        triggerFireInstant - The computed time when the trigger should fire. May be different from the time of the quartz trigger.
        Returns:
        The newly created job. null if the job could not be created.