In this example, any LOCKED task will not be shown as editable. Any task in state CANCELLED or FINISHED will be moved at end of topic table on save action. This will not work on TWiki.org as it need a patch EditTablePlugin (see EditTablePluginDev).