logo

Task is locked issue in workflow

Rish posted on Friday, August 22, 2008 5: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
reply


Hi Rishi!

dbuja posted on Wednesday, October 22, 2008 4:05 PM

Hi Rishi!

Did you resolve this issue - we are having the same problem and I'd
appreciate if you could share what the fix was?

Thanks!
Dejan
reply

Hi,I have removed OnTaskCreated activity.Then it works fine.

Rish posted on Friday, October 24, 2008 11:14 AM

Hi,

I have removed OnTaskCreated activity.

Then it works fine.

Thanks and Regards,
rishi
reply

I meant the 1st issue (task locking when "assigned to" allows multiple users -

dbuja posted on Friday, October 24, 2008 5:54 PM

I meant the 1st issue (task locking when "assigned to" allows multiple users
- works fine when only one user can be assigned, locks when multiple users
can be assigned - even if I assign just one)

I can't seem to make it work for me...

Thanks for your help!
reply

Hi All!

shabi posted on Tuesday, February 03, 2009 7:15 AM

Hi All!

Did u find any solution for this, i need to assign task to multiple users
but it dosen't allow me to neither completetask or AlterTask method
reply

Thank you a lot......

mehul trivedi posted on Thursday, July 23, 2009 4:55 AM

You are required to be a member to post replies.  After logging in or becoming a member, you will be redirected back to this page.
reply

 

Didn't Find The Answer You Were Looking For?

View SharePoint Development Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos

Previous SharePoint Development conversation.

SharePoint Design    SharePoint Development    SharePoint    SharePoint Portal Server    SharePoint Portal Server Dev    SharePoint Setup    SharePoint Windows Services    Sharepoint Windows Services   






  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010