Simple, flexible system to implement workflows