Try OpenEdge Now
skip to main content
Application Developer's Guide
Developing applications with rollback support

Developing applications with rollback support

In certain situations, it might be required to roll back to a workstep which was already completed earlier in the process. To accomplish this, you restart the workflow from the desired rollback workstep in the process. Numerous state changes can occur to the process between the selected rollback workstep and the current activated workstep. When the rollback workstep is reactivated, the process goes back to the same state as when the rollback workstep was first activated. This compensatory enabled process is necessary to restore the original information and eliminate actions done by the performers in the worksteps prior to the rollback process. These actions are achieved using JavaScript in the completed worksteps to undo the changes to the state of the process.
In addition to describing how to reload the data using the compensatory enabled process, this chapter covers:
*The definition and limitations of the compensatory enabled process.
*A sample process illustrating how rollback points, dataslot selection, compensatory JavaScript, and reactivate worksteps are set up in the process template file.
Note: Additional information regarding defining worksteps in the BPM Designer interface are explained in the OpenEdge Getting Started: Developing BPM Applications with Developer Studio.
* Attributes of the compensatory enabled process
* Rollback restrictions
* Rollback process example
* Writing JavaScript code for rollback worksteps