Regarding on the multiple task in workflow issue, I've found some similar
discussion and issues on this. So far what I found is somewhat like you've
described, such parellel tasks are quite hard to do in state machine
workflow. In some former cases, some other engineers have suggested that we
use sequential workflow instead (which may use replicator or multi tasks
Or someone ever suggested that you launch another workflow from the current
workflow that would create the task and handle the task completion i.e. You
would create a sequential workflow which creates a task and when that task
is set to complete you would create a replicator activity that would call
other instances of the same workflow which will continue until you want the
replicator code to cease calling other instances.
Here is a web entry I've found which also mentioned some suggestion the
replicator related issues:
#Workflow Tasks, the Replicator activity and State Machines
you may also have a look to see whether it helps some.
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
Get notification to my posts through email? Please refer to
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response
from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take
approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump
analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
This posting is provided "AS IS" with no warranties, and confers no rights.
From: =?Utf-8?B?SmVmZiBSaWNoYXJkc29u?= <bobcatri...@community.nospam>
Subject: create multiple tasks in a State Machine workflow?
Date: Mon, 10 Mar 2008 10:15:02 -0700
I have a non-trivial SharePoint State Machine workflow that in one of its
states needs to create multiple SharePoint tasks. Once all the tasks have
been completed the workflow can move on to another state.
I have tried several different ways to implement this but I have found none
that work. The problem stems from that while you can use a Replicator in
State Initialization there does not seem to be a way to setup a
number of onTaskChanged events.
Replicator examples I have seen all use a sequential workflow model. The
same technique does not seem to work for State Machine workflows because it
will not allow activities at implement IEventActivity to be added to the
states stateInitializationActivity. This limitation means that the
createTaskActivity and the onTaskChangedActivity cannot be in the
How do I create multiple tasks in a State Machine workflow state?
Has anyone tried using InvokeWorkflow to synchronously call a sequential
workflow to do the work?
Thanks in advance.