Using rule sets to automate pay conditions