Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
SharePoint GroupsView
Sharepoint Portalserver
Sharepoint Portalserver Development
Sharepoint Windowsservices
Sharepoint Windowsservices Development
Sharepoint Design_And_Customization
Sharepoint Development_And_Programming
Sharepoint General
Sharepoint Setup_And_Administration

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Sharepoint Development_And_Programming Posts  Ask A New Question 

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

 
 

Previous Microsoft Sharepoint Development_And_Programming conversation.