Multiple Transition Sets per Schema
PaulRusuTibreanu opened this issue · 4 comments
PaulRusuTibreanu commented
Thanks for the package. Is there a possibility to have multiple transition sets per schema, for example
field(:state, :string, default: "start")
field(:second_set_state, :string, default: "start")
field(:third_set_state, :string, default: "start")
...
If I understand correctly, state is hard-coded here.
naps62 commented
Perhaps this can be added. The use case hadn't come up to me before
The original intention was to have a single state field, which technically can be achieved by setting it to a map that includes all those keys.
I do see a benefit in allowing for multiple though
gf3 commented
this would be especially useful for e-commerce objects such as orders which might have an order state along with: fulfillment state, payment state, sync state, etc...
naps62 commented
Merged and released in 0.5.0