Dan
Dan

Reputation: 3258

Can I start a state machine from a specific point?

I'm using a state machine to control the steps of a wizard in an ASP MVC solution. Each state represents a page and creates a bookmark when it is reached.

When using the wizard the first transition works fine but subsequent transitions do not because a new controller is created per action and therefore a new workflow application too, losing my bookmarks. I'd prefer not to persist my workflow - I'd rather simply pass in what page/state I'm currently on and start from there. Is this possible?

Upvotes: 0

Views: 633

Answers (1)

Maurice
Maurice

Reputation: 27632

No, it always starts at the top. If you want/need to force it into a specific state you will need to model that into your state machine workflow.

Upvotes: 1

Related Questions