Scheduled Resume

Wait until the specified time, without consuming resources.

In case you are building a polling logic into your Long Running Process or simply need to wait for a specified time before continuing, a Scheduled Resume shape is made for you.

What is Scheduled Resume?

Scheduled Resume shape allows the Process to enter into a paused state in combination with the Checkpoint shape, where it will resume from after the scheduled time arrives.

With some Process logic, you can also iteratively wait for a specified time, check a condition and possibly wait again until the condition allows the continuation of the Process.

Scheduled Resume pausing the Process until specified date.

Usage

Scheduled Resume shape can be used to have the Process wait for a specified duration before returning to a Checkpoint shape.

In order to use the shape in the Process, it must be connected after an Exclusive Decision shape, so that the Process flow continues back to the Checkpoint shape for that branch of the Decision. Checkpoint shape must be the next shape after a Scheduled Resume shape, but there can be other shapes between the Exclusive Decision and Scheduled Resume shape.

Unlike any other shape in Frends, Scheduled Resume shape is the only shape requiring and making possible a looping Process flow.

After added to the Process, the shape must be configured. You can adjust the wait time in minutes for the shape, as well as the maximum number of iterations the shape allows before ending to an exception. In a sense it works similarly to a While loop, while introducing a wait time between each iteration.

Even if the Process is configured to use a Scheduled Resume shape to resume the Process at a later time, Signal Resume shape can be used in another Process to hydrate the Checkpoint, regardless of the status of the Scheduled Resume.

Architecture

Scheduled Resume shape makes the Process pause and stop the execution, much like Checkpoint shape does when it is set to not continue immediately. It should be noted however that Checkpoint shape is the one storing the state of the Process and not Scheduled Resume, meaning any data created in the Scheduled Resume branch will not be persisted.

When Scheduled Resume is used and the Process execution continues, the Frends Agent makes sure that the Process execution continues after the specified duration, similarly to how a Schedule Trigger starts a Process at a predefined time. In case the Agent is not functional or its system time is changed, the Scheduled Resume may not resume the Process correctly.

Any paused Processes are resumed on the same Agent as where the execution started in. In case a High Availability configuration is in use, it is not possible to switch the executing Agent while resuming a Process.

Configuration

To set up a Scheduled Resume shape, add the shape to Process canvas and connect it as part of your Process. After that, you can configure the parameters for the shape.

The following configuration parameters are available for Scheduled Resume.

Display name

Shapes can be given a display name in Frends Processes to distinquish them from each other. Shape's display name has no technical purpose and is only for documentational and visual purposes only. For shapes returning a #result reference value, the display name can be used to specify which result is meant.

Display name is given to the shape by double-clicking it on the canvas or through its configuration parameters.

Maximum Number of Iterations

Numerical value representing the maximum number of times the Scheduled Resume shape can activate a pause in execution before ending in failure.

Resume Interval

Numerical value that defines how long the shape waits until resuming the Process again, in minutes. If multiple iterations are performed at this point of the Process, the value sets the wait time between each iteration.

Reference Values

Scheduled Resume does not provide any reference values.

Last updated

Was this helpful?