Restore workflow variables on revert