Refactoring adding constants for trigger and action

Added constants and created Rule to apply
specific triggers and actions.