c# - wcf workflow with parallel sub flows complex senario -
workflow scenario http://i61.tinypic.com/mmftz5.jpg
according attached scenario have workflow:
- first user start request , requestid , assign request manager inbox.
- manager see request , select relevant approvers(1..n) , assign flow them.
- foreach approver see request, approver can reject , return request manager or accept , select relevant employees something.(the approval process parallel).
- every employee recieves work may , finish the assigned work.
- if employes finished assigned works workflow completed.
in senario have difficulties:
- workflow in same time may in different states(aprovers state , employees state. approver(1) may assign flow employees approver(2) may not yet).
- wcf operation names in parallel foreach make duplicated bookmarks.
i need best solution or simple example me implement scenario. (make sub workflow approver , employees?,how solve parallelism problems? use of external wcf flows?) tnx.
take data design account , have data include state 'forapproval', 'rejected', 'approved(by)' , optional approver. transactional on data , break workflows if transactions fail. e.g. rejected can't approved, , vice versa.
if on 1 parallel branch have approver rejects, , on branch approver approves, let first transaction win , break losing workflow.
you can/must decide if approvers can assign work approver. etc.
Comments
Post a Comment