silverstripe-australia/advancedworkflow — pull request #14 by patbolo (2012-09-20 23:27:59+00:00)
Title: NEW 

Perform a clean up of workflow action and transition instances when an action is deleted from a workflow definition. When a page has a workflow assigned which is paused on an action, deleting this action leaves the workflow in an unstable state, and the workflow is stuck. I have chosen the approach to delete the workflow instance (as well as outbound transitions, which are not editable in the backend anymore anyway). I also thought that we could try to rollback the workflow to the latest known action, but it gets tricky if the action was the merging point of two branches in a workflow. I'm open for discussion though, as I understand this commit can be controversial.