Editing custom workflows with Workflow Re-hosting
I prototyped this End User Workflow editor and I based my source from [MSDN] http://msdn.microsoft.com/en-us/library/aa480213.aspx . So far I have made the following settings:
- I added a new project, Workflow.Core, which will host custom actions and default workflows.
- The toolbar now displays custom actions that are included in Workflow.Core.
- When loaded, the workflow designer will show the default workflow from Workflow.Core instead of an empty SequentialWorkflowActivity. In addition to defining the initial workflow, the default workflow contains properties that are set and changed during the execution of the workflow.
The problem is the WorkflowView won't let me edit the default workflow. This is like it in read-only mode, although I can still edit its attributes. It worked fine when I loaded the SequentialWorkflowActivity instance.
Then I tried to add the default workflow activities to the SequentialWorkflowActivity instance and load it. It worked. I was able to drag new actions onto it and make changes to properties. However, reference properties are no longer available in the default workflow.
There is an alternative: I create and include an action to host all properties instead of the default workflow itself. However, it will need an explanation to the client (which I don't think I understand) why there is an ubiquitous activity in all of their custom workflows that doesn't make business logic visible.
In general, I need the workflow designer to edit the default workflows. Therefore, if you have any ideas or suggestions please let me know. I need all the help I can get.
Thanks in advance!
Carlos
source to share
No one has answered this question yet
Check out similar questions: