Help with a custom workflow that monitors the state of objects

I need to write a workflow that monitors the state of an object. (He may wait several days or hours for a change of state)

I have the following states for an object (let's call it an Issue object):

1) Created
2) Unowned
3) Owned
4) UnAssigned
5) Assigned
6) In Progress
7) Signed Off
8) Closed

I would also need to take some action on the object if the object was in a certain state for a certain period (not quite sure how this can be done).

The owner of the object / assignee may change at any time (ie, go from "In progress to"), so I assume that the state diagram of the machine will be used. If my thinking is wrong, please let me know.

My application is written in C # .net 3.5.

, CreateIssue, db, ( ). , , - , . " " Windows Workflow Foundation 3.5, , , - .

.

.

+3
2

WorkflowService, , . worklfow , , , , . .

+1

WF , , - ​​ :

  • .
  • Delay While, , .
  • , .

1 2 - , , , . 3 Subject/Observer , .

3 WF EventDrivenActivity - . MSDN wiki . , , , , ( , ).

1 2 , , , / . - .

1 2, , , . WF , - , ( ) . , , 2 ( ). , , .

2, , ( , , ..), , , .

+1

Source: https://habr.com/ru/post/1739027/


All Articles