(Actually this code is based on Endevor sample code originating from Endevor r12 ...)
With this sample code I'd like to contribute to a discussion-item about exit-7. You will need to adapt the code, at least at those points marked with dot's (.....). And I would be glad to provide some start-assistance.
The element-actions contained in the package are went through and are checked.
A final version of the exit could be used to enforce the four-eyes-principle (caster and approver must be different). For other purposes, different exit points need to be set and different functions need to be checked.