Default Script for Cancel and Discard Actions 
The request form allows you to either ‘Cancel’ or ‘Discard’ a particular request prior to final submission. Such an event may result in partial transactions which may require a ‘clean-up’.
In order to cater to such operations, default associate scripts for cancel and discard actions are provided within the associate script inventory. You can define a custom logic within the default scripts which will be triggered based on the user’s action on the form.
For example, As part of a Create DNS workflow, a user gets a Free IP, reserves it, and then immediately wants to cancel the request transaction. In this case, the reservation of IP and any other transactions will need to be ‘cleaned up’. The Cancel script Logic releases any temporarily locked free IP and releases any reservation on the IPAM in the event of a cancel or discard action on the form.
