Action on workflow delete

Hi,

I would like to do some clean up whenever the user decides to delete the workflow. That is, some nodes might not have been reset in which case the reset method doesn't help. Neither does the dispose method as it also gets called whenever the workflow is closed.

Is there any way to trigger an action for a particular plugin when the worklow containing nodes from the plugin gets deleted?

Many thanks in advance,

Stephan 

Hi Stephan,

No, that's not possible as deletion of a workflow is a pure file system operation (that can also take place outside KNIME). The only hooks are -- as you state -- the reset and the dispose method. Reset gets called when the node is reset, and dispose gets called when the node is removed from the workflow or the workflow is closed.

Bernd