life_cycle function

Create a life_cycle from a collection of transitions