First page Back Continue Last page Graphics


Notes:

Restoring Savepoints (continued)

Save Point Restore Finalizers

When used in conjunction with a Save Point Restore activity, a Save Point Restore Finalizer contains application-specific logic that may need to be performed to restore the application’s state. The Save Point Restore Finalizer is a method that is invoked after the ADF bounded task flow’s state has been restored. This method performs any necessary application logic to ensure that the application's state is correct before proceeding with the restore. For example, you might use a Save Point Restore Finalizer to restore logic for time validations.

During the restore process, each bounded task flow on the call stack being restored gets a chance to verify that its restored state is valid and to perform any restore-specific logic it might need.

To add a Save Point Restore Finalizer method to an ADF bounded task flow, perform the following steps:

1. In the editor, open the ADF bounded task flow on which you want to execute a Save Point Restore Finalizer method. This is the ADF bounded task flow being restored, not the task flow executing the Save Point Restore activity.

2. In the editor, click the Overview tab and click Common.

3. Click the button next to the Finalizer.

4. In the dialog box, specify a custom Save Point Restore Finalizer method on a managed bean, for example: #{pageFlowScope.taskflowBean.finalizerMethod}