Windows Workflow Foundation 3
Load rules in the Designer Rehosting demo
I am using the Designer Rehosting demo from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnlong/html/WFDsgnRehst.aspBy default, this demo uses SequentialWorkflowActivity as base class to create workflows. Now I have modified it so that workflows will be created from a custom activity which is then derived from SequentialWorkflowActivity.So far, everything goes well except one problem:I create a workflow, add a IfElseActivity, add some conditions to it and finally I save the workflow. The demo generates three files (.xoml, .xoml.cs, .rules) which are good and can be compiled to DLL by the WorkflowCompiler class.However, if I re-open the workflow in the demo, all the conditions saved in the .rules file will be lost.I have done some researches on this, and found out that when the base class of the workflow is a custom activity instead of the SequentialWorkflowActivity, the method GetFileReader of the workflow designer loader will never be called.Can anyone give me some help on this?Thanks.
I think I have found the reason for this problem, not because of PerformLoad.If I compile my base workflow with a .rules file, even if it is empty, the designer will refuse to read conditions from the .rules file of my derived workflow.Now I compile my base workflow no more with a .rules file, and the designer works well.Could you please confirm it?Thanks.
Any idea on this problem? Please tell me if I didn't describe the situation clearly enough.Thanks
Hi, Sorry for the late reply. Can you share your code in PerformLoad method of the workflow? Thanks, Vihang
I think I have found the reason for this problem, not because of PerformLoad.If I compile my base workflow with a .rules file, even if it is empty, the designer will refuse to read conditions from the .rules file of my derived workflow.Now I compile my base workflow no more with a .rules file, and the designer works well.Could you please confirm it?Thanks.
Related Links
My workflow deriving from my own workflow base class - will it work?
Object To Object Map Activity
Distributed Transaction with WWF
MaxInstances WorkflowRuntime
Remote workflow tracking
callback trigger
Question about hosting
Context bindings wsdl generation
Use of HandleExternalEvent result in an IfElse activity
Custom Activity Designer
How to invoke rule set editor independently?
WebService and Persistence
Workflow Designer slow with numerous rules
Replicator w/ ExecutionType=Parallel : How to create dynamic tasks in childactivity
Any example of having multiple categories in a WWF Designer toolbox?
Dynamic Update