Using Save Points for resumable processes
Save points allow to save the complete state of the X4 Process Engine. It stores all processed data and status information in the file system during the Technical Process instance's runtime.
If the Technical Process is resumed from a save point, the persisted data will be restored. If data, adapters, and subprocesses are invoked for the first time behind a save point, the most recent components will be used.
You can define save points by selecting a transition line in the process diagram and defining one of the following operations for the property Save Point
in the Properties view.
Save and Continue | Set a save point, and continue the Technical Process instance's execution immediately. In more complex Technical Processes, it allows you to store intermediate results. If errors or failures occur, the Technical Process instance can be resumed from the last save point, and you can avoid restarting the whole Technical Process. | |
Save and Stop | Set a save point, then halt the Technical Process instance's execution. This allows you to implement long-running processes, that can be "put to sleep" during the process execution until external data manipulation or maintenance work is finished. Afterwards, you can resume the Technical Process instance. | |
Delete | Delete current save point |
Restrictions
- Database transactions or cursors can not be persisted.
- For each process instance, a save point can be saved. If a process contains multiple save points, the last state of the save point is used.
- Save points cannot be used in debug mode.
Resuming a process instance execution via the Monitoring interface
Open the Monitoring interface in your browser.
Select the corresponding halted process in the Instance view.
The process will be displayed in the detail view.- Select the corresponding save point under Savepoints.
Click Restart/Resume to resume the process instance's execution.
The process instance will be resumed based on the most recent save point, using all processed data and the persisted state of the Process Engine.