Jon Flanders' Blog

Having a bad back== less blogging

Friday, February 24, 2006 1:54:50 AM (GMT Standard Time, UTC+00:00)

I've been dealing with a bad back for about two weeks.  Wow - it sucks.  Luckily I have the best chiropractor in the world (Dr. Holtzinger - who also used to be Don Box's chiro - so I guess that makes him famous as well ;-)).

Anyway  - some of the stuff I've been working on I haven't gotten permission to blog about yet ;-)  - but alot of my time lately has been spent on WF/BizTalk/BAM and what I consider to be one of the more important reasons to use these technologies - visibility (you'll find other people refer to this as transparency - I really don't like that word as much personally).

On the WF forums (http://www.windowsworkflow.net) there have been lots of questions about hosting the WF Designer in a Web Page.  This is possible - but only if you give the site the control is downloaded from FullTrust persmissions.   I came up with an alternate idea - which is to run the designer on the server - and just output an image of the current state of the designer.

I've coded up a sample you can download if you are interested - hopefully I'll feel good enough soon to actually post a better explanation of how it works.  In the asp.net website - AsAControl.aspx hosts the designer as an ActiveX control (remember this is where you need to add or modify a codegroup so this site or page can have FullTrust CAS persmissions).

Default.aspx runs the designer on the server and then ouputs an image.  RunAWorkflow.aspx is a sample which runs a workflow and updates the image in real-time as to which Activity has just run (it does this in conjunction with a custom Tracking service).  I like this approach better - because it avoids any of the potential CAS issues you might have trying to host the designer in a web page (of course this only works if you are trying to get visibility into the WF execution - not if you are trying to design a workflow - although there are ways that might work with image maps etc - but not likely to be very elegant).

WFTestSample.zip (246.58 KB)

WF   #    Comments [7]   Tracked by:
"How I spend my Sunday afternoon - playing with Atlas" (Jon Flanders' Blog) [Trackback]
http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid,0a90c407-1173-4758-a199... [Pingback]
"My simple WF/ASP.NET designer example" (Jon Flanders' Blog) [Trackback]
http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid,3d9fa285-76a1-423c-b72e... [Pingback]
"Workflow Designer Hosting" (Eric Nelson - Development for .NET Framework 3.0 (W... [Trackback]
"maryland automotive windshield" (maryland automotive windshield) [Trackback]
"her first audition" (her first audition) [Trackback]
"annuncio affitti isernia" (annuncio affitti isernia) [Trackback]
"paul posey tallahassee florida" (paul posey tallahassee florida) [Trackback]
"georgia bulldog" (georgia bulldog) [Trackback]
"cd organizers" (cd organizers) [Trackback]
"offerta praga" (offerta praga) [Trackback]
"congelatore da incasso" (congelatore da incasso) [Trackback]
"cameriere in autoreggenti" (cameriere in autoreggenti) [Trackback]
"Sports Betting Rss Feed" (Sports Betting Rss Feed) [Trackback]
"albuquerque respiratory jobs va medical center" (albuquerque respiratory jobs v... [Trackback]
"tiaras and headpieces" (tiaras and headpieces) [Trackback]
"used kountry aire camper trailer" (used kountry aire camper trailer) [Trackback]
"columbus ohio commercial real estate" (columbus ohio commercial real estate) [Trackback]
"invisibile pulcino dildo" (invisibile pulcino dildo) [Trackback]
"sms gratis cellulare" (sms gratis cellulare) [Trackback]
"racconto erotici con animali" (racconto erotici con animali) [Trackback]
"zyban side affects" (zyban side affects) [Trackback]
http://smartsolutions.no/cmsimple/downloads/cialisbuycialis.htm [Pingback]
http://icebox.com/catalog/images/cialis.htm [Pingback]
"www.best-vaporizers.com" (www.best-vaporizers.com) [Trackback]
"downlineincome.com" (downlineincome.com) [Trackback]
"www.pokerplayersusa.com" (www.pokerplayersusa.com) [Trackback]
"www.mommyco.com" (www.mommyco.com) [Trackback]
"www.cannabisvaporizers.com" (www.cannabisvaporizers.com) [Trackback]
"www.feminizedmarijuanaseeds.com" (www.feminizedmarijuanaseeds.com) [Trackback]
"www.bewbs.com" (www.bewbs.com) [Trackback]
"www.impact210.com" (www.impact210.com) [Trackback]
"hackgs.com" (hackgs.com) [Trackback]
"www.neptunesbeachclub.com" (www.neptunesbeachclub.com) [Trackback]
"www.conferencecalldirectory.net" (www.conferencecalldirectory.net) [Trackback]
"www.ringtone-center.com" (www.ringtone-center.com) [Trackback]
"www.herbalmarijuanavaporizer.com" (www.herbalmarijuanavaporizer.com) [Trackback]
"www.marijuanavaporizers.net" (www.marijuanavaporizers.net) [Trackback]
"www.herbvaporizers.com" (www.herbvaporizers.com) [Trackback]
"www.marijuanavapor.com" (www.marijuanavapor.com) [Trackback]
"www.vaporizerpipes.com" (www.vaporizerpipes.com) [Trackback]
"www.jntah.com" (www.jntah.com) [Trackback]
"phenterminedietpill.fugocm.pila.pl" (phenterminedietpill.fugocm.pila.pl) [Trackback]
"www.masteringbiztalk.com" (www.masteringbiztalk.com) [Trackback]
"www.thecodingmaster.com" (www.thecodingmaster.com) [Trackback]
http://smartsolutions.no/cmsimple/downloads/discountviagra.htm [Pingback]
http://rightrainbow.com/archives/2004/tramadol.htm [Pingback]
http://cuteberries.com/cbmakers/Unique/buymeridia.htm [Pingback]
http://aamovement.net/dokuwiki/data/purchasephentermine.htm [Pingback]
http://spaceblue.com/lists/attachments/cheapmeridia.htm [Pingback]
http://cheapiso.com/images/tramadolonline.htm [Pingback]
http://content-maven.com/articles/imgs/buytramadolonline.htm [Pingback]
http://aamovement.net/dokuwiki/data/cialisbuycialis.htm [Pingback]
http://icebox.com/catalog/images/vicodin.htm [Pingback]
http://jaimezollars.com/shop/images/online-soma.htm [Pingback]
http://www.google.com/search?q=phekeaww [Pingback]
http://www.google.com/search?q=fcjkfflk [Pingback]

Friday, February 24, 2006 9:09:27 AM (GMT Standard Time, UTC+00:00)
Hi Jon. Is there any progress on having WF controlling page flow in ASP.Net? Other than an article on DevX (http://www.devx.com/dotnet/Article/29992) I don't see any official support from Microsoft.

I am 100% in agreement with you on the visibility you get from using technologies such as BizTalk and WF - but wouldn't it be great if that same visibility could be achieved with web pages?
McGeeky
Monday, March 20, 2006 6:51:12 AM (GMT Standard Time, UTC+00:00)
Hi Jon, I had downloaded the WFTestSample.zip, and this solution can be compiled and runned normally. But if i start from IIS, this image can't show? why?
Tuesday, March 28, 2006 6:46:45 PM (GMT Daylight Time, UTC+01:00)
Jon, your example works great! exactly what I needed, however it only seems to work with sequential workflows .. trying the same method with a state workflow does not work

Have you been able to get this method to generate an image for a state workflow?
Tuesday, March 28, 2006 6:50:43 PM (GMT Daylight Time, UTC+01:00)
I've made it work with StateMachine as well - what are you seeing?
Thursday, August 10, 2006 7:21:49 PM (GMT Daylight Time, UTC+01:00)
hey there kit kat!
Sunday, August 20, 2006 4:34:00 PM (GMT Daylight Time, UTC+01:00)
Now Jon,

how many times have i told you NOT to do GUI's? :p

Hug u soon.
Monday, September 18, 2006 9:59:25 PM (GMT Daylight Time, UTC+01:00)
Hi Jon,
Excellent blog and sample!
I have downloaded this code and am trying to use it to model our own viewer from within a webpage. However I am not having much success. I need this page to be viewable to browsers outside the corporation, so using an activeX control is not going to work because of the permission issues. So I have tried saving the workflow as an image in the workflow viewer object and returning a stream which is written out to the browser within an iframe. This works ok, however I cannot seem to control things such as the zoom factor and collapsing certain composite activities properly. When I collapse the activities I want, the image that is saved doesnt resize or apply the layout again, so I basically get large chunks of white in my rendered workflow diagram. After I set zoom and collapse certain activities I have tried called workflowView.Refresh() and workflowView.Show() to no avail. Firstly, is what I'm attempting possible? I dont have a lot of experience with these UI drawing objects so I'm really struggling to get my head around these concepts. Any help you can offer would be greatly appreciated. Thanks in advance.
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview