Long Running Process Shapes
Shapes for pausing and resuming a Process.
Shapes for implementing Long Running Processes allows you to put the Process on hold for as long as necessary, and resuming as soon as the schedule or external signal resumes the Process again. They are generally used to implement business processes in one go, presenting the whole flow from start to finish without needing to jump and search between Processes for that one ID.
When the Process is paused on a Checkpoint shape, the data needed to continue the Process execution later is stored to a database, and the execution of the Process optionally halts until resumed. When it happens, the state is loaded from the database and the Process is resumed, allowing it to continue as if nothing happened during the wait time. The Process execution itself is completely dormant during this time and does not consume any resources other than storage for the state.

In order to resume the Process's execution, you can use either Scheduled Resume shape within the Process to continue after a specified time duration, or a Signal Resume from another Process that receives data from external systems and can signal the paused Process with a Correlation ID to continue.
Checkpoint
Checkpoint shape is used to store the state of the Process into the Agent database and optionally pause the Process, causing the execution to halt until resumed. Resuming the Process causes the Agent to load the stored data of the Process and resume its execution as if nothing had happened in between.
If a Checkpoint shape is used but the Process execution is chosen to continue immediately, the state of the Process is still saved. This allows resuming and retrying the following execution path later on, if the Process is put to wait for a scheduled resume using Scheduled Resume shape. If an error occurs after a checkpoint, a Frends developer or IT Support personnel can also resume the Process manually from the Frends UI after the error is corrected.

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.

Signal Resume
Signal Resume shape allows resuming another Process by sending a signal with the matching Correlation ID field.

For example, it would be possible to have a Long Running Process to handle a complete business process in tandem with external systems, and another Process that receives status updates from the external systems and can resume the Long Running Process whenever an update comes in.
This allows for a separate, centralized polling or webhook Process while keeping the Long Running Process easier to understand by business personnel.
Last updated
Was this helpful?

