Creating a transaction rule.