views:

513

answers:

3

I've been looking at the possibility of ReHosting a WF4 Workflow to be used to debug running Workflows. All the posts and samples I've seen regarding WF4 Rehosting are using a WPF application to initially Host the Workflow, and then use the WorkflowDesigner in ReHosting it. Is there any way to Rehost a Workflow that was hosted in a non WPF application, like ASP.Net MVC?

+4  A: 

The WorkflowDesigner is basically a big WPF control so you cannot host it in an ASP.NET application. Neither can you in a Silverlight application. If you need to expose the designer over an internet app you would have to either create your own designer or use something like terminal server/Citrix.

Maurice
Is there no way to even get screen shots, like a static view of the workflows present location?
ahsteele
There is a CopyAsImageCommand that will let you get an image of the workflow but that is still part of the workflow designer and thus a WPF action.
Maurice
A: 

Hi Maurice,

I just about read in another post that WF 4 will make the hosting the designer in the application easier than it is today. I too have similar requirement that the workflow designer should be availabe to the user so that he can create his own workflows. This was reasoned in that post to the fact that the WF 4 is completely markup based and no code is involved... making it easier to host in the application....

ASV
A: 

is there any way to highlight a specific activity in the rehosted wpf designer, how can we differentiate between different instances of a native activity in a rehosted designer and then somehow change back color/border color etc. ?

jikan_the_useless