.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Workflow Services in WF4 - how to find out which operations can be invoked?

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :Windows Application
Hi All I'm just working through a migration from WF3.5 to WF4.0. In WF3.5, with the Receive activity, I was able to access the workflow runtime behavior from the workflow service host, and get access to the workflow runtime. From the workflow runtime, I could get the workflow instance, and from the workflow instance I could enumerate the queues. Because the conventional queue name was InterfaceName|OperationName, I could find out which operations could be delivered to a particular workflow. I wrote a companion service that returned this information to the client. This meant that the client application didn't have to have knowledge of which operations could be delivered to a particular workflow based on its current state, which was nice! In WF4.0, is there equivalent functionality available? I can post some indicative code samples from WF3.5 if required... Regards Nigel

View Complete Post

More Related Resource Links

Workflow Services: Visual Design of Workflows with WCF and WF 4


The .NET Framework 4 makes it easier than ever to implement WCF services using WF. We'll demonstrate just how easy it is by modeling a long-running, durable and instrumented workflow based on a real-world business case without having to write any code.

Leon Welicki

MSDN Magazine May 2010

Foundations: Workflow Services for Local Communication


This month's column describes how to use WCF for communication between a workflow and a host application in Windows Workflow Foundation 3. This knowledge should help developers with their efforts using WF3 and prepare them for WF4, where WCF is the only abstraction over queues (referred to as "bookmarks" in WF4) that ships with the framework.

Matthew Milner

MSDN Magazine November 2009

ASP.NET Workflow: Web Apps That Support Long-Running Operations


Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009

Foundations: Workflow Services


With the NET Framework 3.5, Windows Workflow Foundation can now truly be integrated with Windows Communication Foundation. This column describes how the integration works and how to make use of it effectively.

Matt Milner

MSDN Magazine Launch 2008

Web Service Workflows: Deploy Distributed Business Processes With Windows Workflow And Web Services


Due to the distributed nature of a business process it makes sense for a workflow to be deployed as a distributed application. See how Windows Workflow and Web Services hold the key.

Israel Hilerio

MSDN Magazine October 2006

BizTalk 2004: Automate Your Business Processes with Human Workflow Services and Visual Studio


BizTalk Server is an excellent platform for automating B2B and EAI workflows. Process-driven workflows send messages between machines and access data. Until now, such processes were very difficult to automate, but with the introduction of Human Workflow Services in BizTalk Server 2004, this class of workflow automation is a very real possibility. This article explains it all.

Chris Whytock

MSDN Magazine October 2004

Error loading workflow services

Hello, I'm developing a service library using the new wf 4.0 and one of my requirements is that some activities have the ability to be resumed by a client, so i created a wcf resume service that could load a workflow definition and resume a bookmark of that workflow. One of the services i created was a flowchart that has a receive reply activites inside a sequence activity has a start point, after that i have another sequence that have another sequence, yes 2 sequence activities, and my custom activity that needs to be resumed by a client. The 2 nested sequence activites was a something i used only for testing, but if i had those 2 sequence activities nested i got an error when loading that workflow definition in my resume service: 'ObtemPareceres' is not of type 'Sequence'. When loading this instance you must ensure that the activity with name 'ObtemPareceres' implements 'Sequence'. The "ObtemPareceres" is my custom activity, and if i remove that second nested sequence everything works fine. Anyone has any idea of whats going where? thanksFrederico Regateiro

Cannot find Manage services under Service Application of Central admin

We have Intranet solution based on SharePoint 2010 small farm. Somehow we don't see Manage services on server under the Service Applications in the central admin. Portal seem to work otherwise fine. When we opened the page to browser http://servername:14082/_admin/Server.aspx we received error: Access denied. We have tried to login with Admin, SP_Farm and SP_Admin user, but access denied every time. I checked who have Full user rights in the Central admin. It is SP_Admin Admins of the Sitecollection is SP_admin and Administrator. Why this happens?Kenny_I

Validate available operations on workflow service

I'd like to check if i can invoke an operation on workflow service so i could disable action buttons on my UI. Is it possible? If I invoke operation which isn't right at that moment I get exception: "Operation cannot be performed at this time. Please ensure that the operations are performed in the correct order and that the binding in use provides ordered delivery guarantees." And i would like to avoid theses kind of messages by validating before invoking. udione

Hosting workflow services with durable timers / delays

If I host a workflow service in IIS, will persisted workflows with expired timers be reliably and automatically reloaded? What about if I host it with WorkflowServiceHost in my own app? I haven't been able to find a clear answer to this question - all I found were old posts referring to the betas, where apparently you needed Workflow Management Service to do this, but this isn't in the shipping version of Workflow Foundation. I'd greatly appreciate a clear unambiguous answer.

Error Publishing Workflow - : Activation could not be completed because the InfoPath Forms Services

Recently our when trying to publish a new workflow we are getting the following error: Activation could not be completed because the InfoPath Forms Services support feature is not present. Another symptom is any existing custom workflows are not running. There are several older posts from SharePoint 2007 that indicate to disable and re-enable the SharePoint Server Enterprise Site features. I have tried that and I still get the error.  Looking through the ULS I see the following when I try and publish a workflow: 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 c700de1a-5756-4f45-915e-3b229e56f049 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 InfoPath Forms Services Conversion and Deployment ey0w Verbose VerifyListPresence: FTL not found on site:http://uchintranet due to expected FileNotFound exception:The system cannot find the file specified. (Exception from HRESULT: 0x80070002) c700de1a-5756-4f45-915e-3b229e56f049 09/16/2010 15:04:29.48 w3wp.exe (0x2070) 0x0718 InfoPath Forms Services Runtime 82mv Exception Activate NonAdminSolution failed with unhandled exception Microsoft.Office.InfoPath.Server.Util.InfoPathLocalizedException: Activation could not be completed because the InfoPath Forms Services support feature is not present.     at Mic

Where to find code samples for Microsoft® SQL Server® 2008 Analysis Services Step by Step



I got this book  Microsoft® SQL Server® 2008 Analysis Services Step by Step by Scott Cameron, Hitachi Consulting from our tech Library , however the companion CD is missing. Can anybody share the CD / practice code examples with me please? The book is only useful if I get to practice the code alongside reading the theory!



Can I call reporting services 2005 from a sharepoint workflow?


Hi there,

I am wondering if it is possible to call reporting services from within a sharepoint workflow and to get a report in HMTL format back?

Many Thanks and Regards

use the default sql services in a console sequential workflow application


Hello all,

I have configured my console workflow application to use the default sql service. However, when I run it in VS2008, it generates a TypeLoadException:

"Can not load type "System.Workflow.Runtime.Hosting from assembly System.Workflow.Runtime, Version=3.0.0000.0, Culture=neutral, PublicKeyToken=xxx"

So, my concern is

  1. How to configure a workflow application to use the default sql service?
  2. Are there any requirements for SQL version? Is there any settings we need to configure in SQL server?

Some tips

  1. my current app.config file looks like this:
    <?xml version="1.0" encoding="utf-8" ?>

Workflow doesn't kick off from document created by Excel Services



I have a workflow created that should pop up when a new item is added to a list.  This works fine if I just add a new item to the list manually.  It also works fine if I start the workflow manually, but it defeats the purpose.  All the workflow does is assign a few tasks, send a few emails, and change the permissions for the document.  As a reference, I created the form in InfoPath with excel services calls and I created the workflow in SharePoint Designer 2010.

However, my list is mainly populated by Excel Services calls - opening a workbook and calling SaveWorkbookCopy - and for some reason, these calls do not kick off the workflow.

I tried changing my account (because the documents appear to be created by me) to a system account, but then it doesn't kick off anything.  I tried changing the Web App user to a System Account, but it still doesn't work either.

My workflow shows: the "Failed on Start" error (says it was canceled by System Account) and when I look in the logs it shows:

08/03/2010 13:45:26.69     w3wp.exe (0x1A78)                           0x1B1C    SharePoint Foundation         &nb

Calling ResumeBookmark from WCF Workflow Services

I am using WCF Workflow Services too host the workflow runtime. I invoke the workflow through xamlx service reference created in my web project. I am creating bookmarks at certain locations in the workflow. Is there a way I can call "ResumeBookmark" from my web project? I see that the only way to call is through a regular workflow application (not a service).

Any help would be appreciated.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend