state-machine-crm