Flow Controller for fire sprinkler systems