Asked By Rish
22-Aug-08 05:24 AM

Hi All,
I am facing the following two problems on custom workflow.
Background: The Sequential workflow has been developed using Windows
Workflow with Visual Studio 2008.
Use Case: Need to assign multiple users to a Task using Sequential Workflow
so that any one of the users can pick that task and start working on that
task.
Approach Used: To achieve above requirement, we have performed following
steps:
We have selected the Yes radio button for “Allow multiple selections†option
for the Assigned to column in the Task list in SharePoint.
To create task, we are calling the Modify Workflow function of
SPWorkflowmanager object model API.
We are passing the multiple “Assigned to†user name like
(1;#Test1;#2;#Test2) to assign the task to multiple users.
So we have used Share point API to set multiple assigned to. (We have used
SPListitem and Update method).
Now, once user try to change task using SPWorkflowTask.AlterTask fucntion.
And then call the UpdateTask to update the task in the Workflow.
Issue: When the radio button for “Allow multiple selections†option for the
Assigned to column in the Task list in SharePoint is set to Yes, then
Now, once user try to change task using SPWorkflowTask.AlterTask function.
Nothing happens as Sharepoint locks the task and it is no more updateable.
If we set the radio button for “Allow multiple selections†option for the
Assigned to column in the Task list to “No†then above requirement works
fine.
Note: Another issue we are facing is that the “OnTaskCreated†Activity is
sometimes not firing for the corresponding CreateTask activity. The
CreateTask and OnTaskCreated activities have been put in a Custom activity
and the Custom Activity is part of a Replicator activity
Thanks and Regards,
rishi