Jon Flanders' Blog

Silverlight calling Workflow Services

Wednesday, June 25, 2008 2:39:15 AM (GMT Standard Time, UTC+00:00)

One question I was asked during my web cast yesterday about calling WCF services from Silverlight is if the service could be a workflow service.  I said - "Of course" - not knowing that it was a little more complex than that :)

That said - here is a sample.

SilverLightUsingWorkflow.zip (535.08 KB)

Unfortunately I don't have time to go into the details right now - working on another project at the moment. The key to making it work is setting the instanceid context to null on the server when the "last" operation is called - in this case the operation implemented inside of the eventhandler which causes this state-machine workflow to move to the completed state (so that the client can then start a new workflow).

I hope to find an more elegant and automatic solution - but this works for now (Hope you are listening Jason from the webcast - this ones for you ;-))

 |  |    #    Comments [4]   

Thursday, June 26, 2008 5:14:49 PM (GMT Standard Time, UTC+00:00)
Yes Jon, I've been waiting with bated breath for your post. Unfortunately I get an error opening the solution. I get a "System.Runtime.InteropServices.COMException" error for the SilverLightUsingWorkflowWeb project. The other two projects load fine. I'm on XP-SP3 with VS-Pro 2008, SL2B2, (no VS service packs). I attempted to recreate the project with your files with no success (it built, but then I got other errors).
Jason
Thursday, June 26, 2008 5:17:03 PM (GMT Standard Time, UTC+00:00)
What are the build errors?
Saturday, July 05, 2008 8:09:50 PM (GMT Standard Time, UTC+00:00)
Hi Jon,
I am getting the same error as Jason. Seems like there is a problem with the zip file. Can't see the workflow file.It would be great if you could update the zip file.
Saturday, July 05, 2008 8:39:07 PM (GMT Standard Time, UTC+00:00)
Hi Nitu - I've uploaded a new version - please let me know if it works.

Jon
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):

Navigation

Books

Courses

Search

Subscribe

  • RSS 2.0
  • Add to Windows Live button
  • Add to Google button
  • Add to MyMSN button
  • Add to MyYahoo button
  • Add to Bloglines button
  • Add to Newsgator button