.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

Resuming of workflows from InstanceStore in Workflow 4.0 Release Candidate

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :Windows Application
Hi,  I am using the WorkflowApplication object to invoke the Workflows. In this type of invokcation, after the workflow persisted,  in case of delay activity, in beta 2 there is no support to autmatic invocation in case of expiry of timers. But in case workflowservicehost the WWF invokes the expired timers workflow instrances automatically.  When I posted the same to forums some time back, I got answer that in the  Release Candidate Mcrosoft will be providing the support of for automatic invocation even the workflows are invoked through the workflow application object.  Now I am using Custom batch job for doing the same. Please let us know about this scenario. If Microsoft provides the support please let me know the process. If there is no automatic invocation support, Can we expect in future?Thanksrajeevkalyan

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

Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows


This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006

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

Nintex Workflow Error: No workflows are waiting for a BizTalk message [...] No processing has been d



I created a Workflow with Nintex Workflow 2007 (on SharePoint 2007) to send/receive data to BizTalk 2009. It worked fine already. But now I get the following error mesage in the EventViewer:

Nintex Workflow; Build: 11000 (http://ls457/_layouts/nintexworkflow/BiztalkHandler.ashx)
No workflows are waiting for a BizTalk message with message Id of 'GeneralAccessRequest_2010-08-23T15_00_04_44961212B370C554EDFAC41C1201ED6CEFB' on teamsite http://ls457/sites/testapp. No processing has been done.

What could that mean? Any ideas? I definitely changed nothing on the orchestration or BizTalk administration. The BizTalk action sends the data correctly to it's destination (database), but it seems that nintex doesn't receive any return data. I don't think it's a BizTalk problem, because in the BizTalk Message Tracking Database the Message is listet, so it has been sent correctly by BizTalk. But the handler probably has problems to find/receive this message.

Kind regards,


Adding Flexibility to SharePoint 2010 Workflows Using the Windows Workflow Foundation Rules Engine

Learn about Windows Workflow Foundation rules engine capabilities and benefits to automate business logic and processes for workflows in SharePoint 2010 applications.

Communication between one main workflow and several agent workflows - finding endpoint address of th



I have a main workflow service and another "agent" workflow service.  The agent workflow service will be hosted on a bunch of machines, all listening on the same port.  For example, the endpoint addresses of the agent workflow services would be: http://ServerABC:9700/SomeService, http://ServerDEF:9700/SomeService, and so on.

The main workflow service (which is hosted on a separate server) needs to determine at runtime the agent it should talk to.  For example: if the main workflow is passed a server name "ServerABC" as a parameter, it needs to figure out that it has to communicate with the agent on http://ServerABC:9700/SomeService.

The main and agent services are built using the designer. I am using context correlation between the main and the agent workflow services.

How can I set the endpoint address dynamically in the Send activity of the main workflow? 

Thanks in advance.

Current settings:

Below is a portion of the web.config file from the main workflow service.  Note the commented portion.  If I specify it that way, it works because it knows the address of the agent's endpoint. That's alright if the agent is running on only one server.  But I need to find that address at runtime in the main workflow service.


Collections not working with Release Candidate

I downloaded the sample apps but they don't seem to have changed.  Have you updated them; if so can you send me the correct link.

In any case, the sample app that demonstrates collections no longer works.  When I run it, I'm getting the following exception:
System.Activities.InvalidWorkflowException was unhandled
  Message=The following errors were encountered while processing the workflow tree:
'Literal<ICollection<Int32>>': Literal only supports value types and the immutable type System.String.  The type System.Collections.Generic.ICollection`1[System.Int32] cannot be used as a literal.
       at System.Activities.Validation.ActivityValidationServices.ThrowIfViolationsExist(IList`1 validationErrors)
       at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
       at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
       at System.Activities.WorkflowApplication.EnsureInitialized()
       at System.Activities.WorkflowApplication.RunInstance(WorkflowApplication instance)
       at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
       at System.Activities.Workflow

Workflow authorisation with many clients, workflows and users


Hi All,

I can't seem to find any documentation/examples for situations where a WF application has multiple workflows, not instances but types, defined. 

I have a scenario where I have multiple clients (companies if you will) using a WF enabled web application. Each of these clients will have 1 or more workflow types available to them. A user of this client will therefore see a list of available workflows that they can start. Before I go to far down the wrong road I wanted to check with you guys as I don't want to duplicate effort and create tables/procedures that are already available for me to record this information in.

I will have an interface:

[userid typed in textbox here]
[workflow to start selected here[ ^ ]
{start workflow button here}

Announcing the ASP.NET MVC 3 Release Candidate

This morning the ASP.NET team shipped the ASP.NET MVC 3 RC (release candidate). You can download it here . ASP.NET MVC 3 is a pretty sweet release, and adds a ton of new functionality and refinements.  It is also backwards compatible with ASP.NET MVC V1 and V2 - which makes it easy to upgrade existing apps (read the release notes for the exact steps to do so).  You can learn more about some of the great capabilities in ASP.NET MVC 3 from previous blog posts I've done about it: Introducing Razor - a new View Engine for ASP.NET (July) ASP.NET MVC 3 Preview 1 (July) ASP.NET MVC 3 Beta (Oct) ASP.NET MVC 3: @model keyword in Razor (Oct) ASP.NET MVC 3: Layouts with Razor (Oct) Today's ASP.NET MVC 3 RC build includes several additional feature...(read more)

WF Workflows: can the workflow be dependent on data embedded in a given workflow document


Our organization just starting out with understanding/prototyping WF workflows. One ciritcal question we have concerns if, and how, a given workflow can change depending on data embedded in a document.

Simple example: An invoice might have several different routing requirements depending on say, the customer related to that invoice, or the amount, or some other data related/embedded in that invoice.

We are looking to have the specific path for that document - inside it's workflow - to be determined at run time - and we're not sure how that would typically be implemented.. Are there certain activities or a service configuration that comes to mind to satisfy this requirement?

This is probably simple - but maybe there's some good documentation/discussions concering this I've yet to find... I guess this might be referred to as a 'smart workflow' - with human intervention not required for this functonality - automating which workflow path is taken depending on the underlying data...


john c kat

Loading and resuming workflow


Hi fellows,

I am having this problem that after programmatically loading my workflow from InstanceStore, my variables & input argumwnt where were stored before are unable to deserialized properly.

One of my veriable is a custom object which contians data members of other custom classes. After loading the instance i still have my variable but all of it members were null. Althought all of my custom classes are marked with Serializable Attribute.

What am i missing here?

Free Series of SharePoint Workflow How-to Videos

This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

SharePoint 2007 Workflows - Things to Consider Before You Start

SharePoint 2007 (MOSS) utilizes the Workflow Foundation (WF) to enable workflows on lists and content types. But before you start doing cartwheels there are few things you should know before you get started. The experiences I'll be discussing are not from book smarts but from building real MOSS solutions that are in production today.

Workflow Essentials: Collaborative Workflow Improvements in SharePoint 2010


In this article, the author covers the new features in SharePoint 2010 geared for workflow developers and then walks the reader through a couple of new user scenarios.

Paul Andrew

MSDN Magazine November 2009

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

Foundations: Windows Workflow Design Patterns


Design patterns provide a common, repeatable approach to solving software development tasks, and many different patterns can describe how to accomplish a certain goal in code. When developers begin working with Windows Workflow Foundation (WF), they often ask about how to accomplish common tasks with the technology. This month's column discusses several design patterns used in WF.

Matthew Milner

MSDN Magazine August 2009

Foundations: Versioning Workflows


Developers often struggle with versioning workflows and their related classes. Matt Milner discusses the core issues related to workflow versioning and provides recommendations for making changes to workflow definitions, activities, and workflow services.

Matthew Milner

MSDN Magazine May 2009

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