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

Categories

MSDN
Microsoft Office for D...
Microsoft Azure
Windows Phone Dev Center
Visual Studio Design a...
Windows Embedded Standard
SQL Server (Pre-release)
Office Live Development
Exchange Server
Microsoft Azure
Archived Forums #
Archived Forums X-Z
Kinect for Windows SDKs
C++ Standards, Extensi...
Visual Studio General ...
Visual Studio Editor
Test Tools in Visual S...
Visual Studio Graphics...
Microsoft Message Queu...
Windows Desktop SDK
SharePoint Legacy Vers...
Cloud Services (Web an...
Pricing & Billing
Microsoft Azure Site R...
Azure Backup
Azure CDN
Azure DocumentDB
Azure Log Analytics
Azure Logic Apps
Language Understanding...
Azure Security Center
Azure DevTest Labs
Azure IoT Hub
Azure Functions
Windows Workflow Found...
Team Foundation Server...
Team Foundation Server...
ISV Open Discussions
Partnering with Microsoft
SyncFx - SyncToy-File ...
SyncFx - Microsoft Syn...
SQL Server Security
SQL Server Setup & Upg...
SQL Server Spatial
SQL Server Samples and...
Standard 7: Embedded E...
Standard 7: Misc
Windows Embedded Compa...
SQL Server 2012 Master...
SDK for Home Server 20...
Windows Live  Spaces: ...
CRM Deployment
WebsitePanel - Discuss...
WebsitePanel - Enterpr...
WebsitePanel - Develop...
Developing for the Mob...
Microsoft Automatic Gr...
Bing Maps General
Silverlight Installati...
WCF RIA Services with ...
Windows Performance To...
Microsoft Security Dev...
.NET Framework Network...
.NET Remoting and Runt...
ADO.NET Entity Framewo...
CAT.NET
Game Technologies: Dir...
Game Technologies: XNA...
General Windows MultiP...
Microsoft ESP Platform...
Microsoft Security Dev...
Microsoft Unified Comm...
Microsoft Unified Comm...
Model-Based Testing wi...
patterns & practices: ...
Silverlight (formerly ...
Service Bus EAI & EDI ...
SyncFx - Microsoft Syn...
SQL Server 2014 In Azu...
SQL Server 2014 High A...
SQL Server 2014 Self-S...
SQL Server 2014 Setup ...
SQL Server 2014 In-Mem...
Team Foundation Server...
Team Foundation Server...
Visual Basic IDE
Visual Basic Language
Visual C# Express 2008...
Visual C# Express Edition
Visual C++ Express Edi...
Visual Studio Team Ser...
Visual Studio 2008 SP1...
Visual Studio Source C...
Visual Studio Team Sys...
WCF Data Services (Pre...
Web Development in Vis...
Windows Error Reportin...
Windows Live Controls ...
Windows Presentation F...
Working with Data and ...
Building Windows Store...
Mango Update (Archived)
Windows Phone push not...
XNA Game Studio Express

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile