[rules-dev] how to use constraint dynamically in rule