gocardless / statesman

A statesmanlike state machine library.
https://gocardless.com/blog/statesman/
MIT License
1.78k stars 163 forks source link

How to directly set current_state? #326

Closed Sora233 closed 6 years ago

Sora233 commented 6 years ago

When I use MemoryTransition, I store the status in model's db_column called status.

And After I get a new resource, I want to set it's current_state to status directly.

Is there any way to do it?

Sora233 commented 6 years ago

I found a solution #219 , It looks good.