• You could accompish this using a script task in an onError event handler.

    Refer to Daniel Read's post here -

    http://www.developerdotstar.com/community/node/327