Re-Hosting the Windows Workflow Designer

I mentioned a couple of days back that we are depending on Windows Workflow as well as WCF. We did a form of proprietary workflow years ago in the legacy version of our Financial application that works somewhat well for the banks that use it. In the new architecture I am designing,  we are doing way more and shooting for the large enterprises. We went to SOA, .NET 3, Agile and WCF a year ago and we rolled out a CTP to a major bank overseas about 12 Iterations ago that is real value working in the field. We knew we wanted to do something very different from our workflow in the legacy product which is defined in a table format. We wanted a lot more extensibility, flexibility and maybe something visual and easier to use. On the architecture front, I begun to look at WWF these past few weeks as a possible solution and it met a lot of the busines needs. Today, I begun to dig in. The WWF Runtime is of course, fairly straightforward to host in any CLR executable (WinForms, ASP.NET, Console apps, etc.). I was curious to see if we could do something like re-host the Workflow Designer inside our Smart Client/CAB application. I found this wonderful article and sample code on MSDN. There are really only three major classes to be concerned with: DesignSurface, WorkflowView,and WorkflowDesignerLoader and I was able to get this working with no changes with the latest .NET Framewoork 3. Then, with some work, I spiked up a little code to see if I could re-host it and sure enough I did. Its pretty feaking cool too! I have to do a lot more stuff to add code on what I actually do with the Workflow and such but its a great start.

Comments

# Bernardo Heynemann said on 19 October, 2006 08:22 PM

Hi Sam,

If it interests you I just published a blog post with a LOT of WF links at manicprogrammer.com/.../195.aspx

Hope it helps,

Bernardo Heynemann

# SamGentile said on 19 October, 2006 09:17 PM

Thanks for the pointer. I will get it into a New and Notable tomorrow.

# TrackBack said on 20 October, 2006 02:06 AM

Link Listing - October 19, 2006

# Tomas Restrepo said on 20 October, 2006 02:08 AM

That sounds pretty cool Sam, let us know how it goes. I've been meaning to look at the designer rehosting, but have been spending far more time with custom activities instead :)

# Nicholas Paldino [.NET/C# MVP] said on 20 October, 2006 01:22 PM

I can't get over the line in the post:

"In the rearchitecture of the next generation I am architecting"

Great use of alliteration. =)

# TrackBack said on 24 February, 2007 06:21 PM

Windows Workflow 101 or 2 Months with WF

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

    The content of this site are my own personal opinions and do not represent my employer's view in anyway.

    Profile for SamGentile

MVP

Blog Information Profile for SamGentile

Tags

Archives

Syndication