Creating and managing lifecycle rules