Current examples assume each different workflow state is defined as a dedicated case class. This works but is a bit heavyweight. An alternative would be to use extensive records, where new data can be added on top of the previous state.
We should research possible approaches (named tuples, external lib, custom solution) and decide on the recommended one. And then document it explicitly.
Current examples assume each different workflow state is defined as a dedicated case class. This works but is a bit heavyweight. An alternative would be to use extensive records, where new data can be added on top of the previous state.
We should research possible approaches (named tuples, external lib, custom solution) and decide on the recommended one. And then document it explicitly.