Flexible workflow for cassandra