how to process document state transition?

Posted by brick on Programmers See other posts from Programmers or by brick
Published on 2014-04-18T08:05:08Z Indexed on 2014/06/01 21:55 UTC
Read the original article Hit count: 351

Imagine there is an application (ASP.NET MVC) that processes some documents. The document must be revised several times by different group of users.

state/role rules:

  • simple user can only publish document; (priority: low)
  • userGroup1 can switch it to next state or reject it; (priority: higher)
  • userGroup2 can confirm previous state and switch it to next gradual state or reject it; (priority: highest)

    1. How to implement such a workflow in ASP.NET MVC? How to impelement UI, views so that group with lower priority can both visually/technically perform only allowed transitions? Can I somehow extend that system: link?

    2. Do I need extras like service bus, event sourcing for that?

enter image description here

© Programmers or respective owner

Related posts about c#

Related posts about .NET