Workflow adaptation advanced scenarios  
Author Message
KarimRadi





PostPosted: Windows Workflow Foundation, Workflow adaptation advanced scenarios Top

Hi Dear,
I have some questions with regards to some advanced scenarios for Workflow adaptation:
(1) Customization scenario: using a Workflow definition and a set of customization policies (defined in a separate file) I would like to be able to add, remove and swap activities both statically (prior to running a workflow instance) and dynamically during the workflow runtime. E.g., suppose we have a Workflow for national Trade and another one for International Trade. They both have a lot of things in common and I want to define one common Workflow and manage the differences through policy-based adaptation. I do not want to complicate my workflow with so many if-then-else! I want a Runtime Service to take my adaptation policy and carry out the adaptation.
(2) Fault Management scenario: Again using policies I want my workflow runtime to Transparently take some corrective actions when the workflow fails. For examples retry the failed activity, skip it, replace it with equivalent activity...and other fault management policies. Note that I want to keep my workflow business-focused and I do not want to complicate it with middleware concerns. I want to outsource the latter to a runtime service (or any other suitable alternative).
Could you please advice on how the above scenarios can be achieved using WF
I am looking forward for some answers and advice
Thanks
Kind Regards
Karim


Software Development for Windows Vista2  
 
 
Serge Luca





PostPosted: Windows Workflow Foundation, Workflow adaptation advanced scenarios Top

Karim,

Lab 11 of the hands on labs shows how to dynamicaly change a existing workflow. You can therefore dynamically add or remove whatever you want according to some situation; and this allows you to keep your common workflow intact.

 
 
Paul Andrew





PostPosted: Windows Workflow Foundation, Workflow adaptation advanced scenarios Top

In the current release of the HOLs it's in Lab 9. The HOLs for the .NET Fx 3.0 June CTP which includes RC2 of Windows Workflow Foundation can be downloaded here:

http://www.microsoft.com/downloads/details.aspx FamilyId=2E575633-E357-4EE7-AAFF-34138F00E830&displaylang=en

Regards,
Paul



 
 
KarimRadi





PostPosted: Windows Workflow Foundation, Workflow adaptation advanced scenarios Top

Thanks Paul,

What about Fault Management scenarios using policies How can I get the workflow runtime to Transparently take some corrective actions when a workflow activity fails. For examples retry the failed activity, skip it, replace it with equivalent activity...and other fault management policies

Any directions on how to achieve the above is appreciated.

Thanks

Karim


 
 
Richard Gavel





PostPosted: Windows Workflow Foundation, Workflow adaptation advanced scenarios Top

I realize the intent of a tracking service is to strictly listen to and record various workflow events and not to affect the workflow itself, but you might be able to write a custom tracking service and listen for ActivityTrackingRecords and interact with the workflow based upon those records.