.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

invoking other workflow from main workflow dynamically

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :Windows Application

 Been doing research for a whlie now and while I suspect I passed right by the answer, it wasn't obvious -- so, figured a direct question is best

I have a situation where I have multiple vendors I do business with and the list can change.  I'd like to be able to create a new workflow for each vendor where I want to support custom steps.  Let's say it is placing an order, and I have a default process that involves manual work.

I envisioned a file (say XML) where I can have a name which represents the workflow I want to invoke.

In my main workflow I wanted to have a parallel activity that sent a message to all of the vendor workflows (on my machine) and waited for them all to finish before moving on.

So, my questions

1. What do I need to do to send a message to this vendor specific workflow?  I have it's name and I can build out a URI based on the name.  In other words, how can I make this work

2.  Does this vendor workflow just have to reply to the receive to indicate "I'm done" to the main workflow

Thanks in advance for pointers, etc.


View Complete Post

More Related Resource Links

Urgent- How to show sequential workflow on asp.net web page dynamically

Hi All,My basic question is how can we show a sequential workflow diagram on asp.net web page dynamically. using WWF can we do this?. i have gone throgh the some of forums/articles but i could not find right information anywhere. please suggest me the right path to achieve this.

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.


Dynamically get the current instance of the workflow within a re-hosted WPF application



the scenario is: I create a re-hosted WPF application for the workflow designer, and within this designer I can edit the workflow(sequence, flowchart) with pre-defined and custom activities. The question is, how can I programmatically get an instance of the current workflow. Thereafter I can do some manipulations on this instance.



Custom Workflow is invoking twice


Hi All,

I have attached my custom content type to document library, for that custom content type I have attached one word template and I have attached my custom workflow to the document library, I am trying to save the metadata from that word template to sharepoint document library, everything is fine but only the problem is my workflow is firing twice. How can I stop that workflow firing twice.

thanks in advance...


Problem assigning a Person or Group field dynamically in workflow

I am trying to create a workflow that gets some information about the submitting user to determine the group to assign to a person or group field in the same list item. I have verified that the string name of the group is being built properly by assigning a separate text field the group name value, this works fine, but when the workflow tries to set the person or group field to the group name string it stops the workflow and shows 'unknown error'. I assumed that it just wasn't performing the lookup for the group, so I created another list that maps the group name string to the appropriate group, and had the workflow lookup the item from that list. It is still giving me the same error when I try to assign the first person or group field to the value of the second person or group field that I have looked up. I am now out of ideas... Help please!

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.

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

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

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

Real-World WF: Best Practices For Windows Workflow Foundation Apps


The heart of Windows Workflow Foundation is its declarative programming model. Here are some best practices to consider when using WF to realize software solutions in the real world.

Josh Lane

MSDN Magazine December 2008

Foundations: Workflow Tips and Tricks


Matt Milner addresses reader requests for information about safely sharing a persistence database across applications and using lesser-known parts of the framework such as ChannelManagerService.

Matt Milner

MSDN Magazine August 2008

Foundations: Loading Workflow Models in WF


When building workflows, you must consider the developer experience, available tools, long-term maintenance, and future versioning.

Matt Milner

MSDN Magazine May 2008

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

WF How-To: Building State Machines with Windows Workflow Foundation


State Machine workflows represent a different way of visualizing program logic. Rather than flowing from activity to activity like sequential workflows, State Machines transition from state to state. Learn about uses for State machines and see how to design and build a State Machine workflow with Windows Workflow Foundation.

Keith Pijanowski

MSDN Magazine February 2008

Foundations: Workflow Communications


Matt Milner introduces the Windows Workflow Foundation (WF) communication architecture and covers sending data out of a workflow and submitting data to running workflow instances.

Matt Milner

MSDN Magazine September 2007

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