Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Application Development » Using the ^RespondingUser Variable


Using the ^RespondingUser VariableExpand / Collapse
Author
Message
Posted Friday, November 06, 2009
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Monday, November 09, 2009
Posts: 4, Visits: 11
I have a task that I am assigning to multiple users.  When each user completes the task, I want to send an email to their boss. 

The task is named tskReviewDocuments.  The users can complete this task with status "Document Reviewed".  It is on the output of "Document Reviewed" that I use the Email activity.  I have defined a resource variable called ^tskReviewDocumentsRespondingUser.  In the body of the Email activity, I include information about the user that just completed tskReviewDocuments using the ^tskReviewDocumentsRespondingUser resource variable.

I've found that my implementation works properly 90% of the time.  However, the other 10% of the time, when User1 and User2 both complete the task, the boss will receive two emails as expected, but both emails will contain User1's information.  The amount of time between User1 and User2 completing the task does not seem to matter.  It is as if the ^tskReviewDocumentsRespondingUser is not updated before the Email activity executes.

What's going on here?  Is there a better way to do this?

Post #1679
Posted Monday, November 09, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, February 10, 2011
Posts: 28, Visits: 47
Hi,

Cross check if the variable which stores the responded user information has been declared as array type rather than resource. The reason being when a task is assigned to more than one user and if we need to get all the responded users information, then the variable should be of type array.

Post #1682
Posted Monday, November 09, 2009
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Monday, November 09, 2009
Posts: 4, Visits: 11
I have the responding user variable declared as a resource, not an array.  I want to send this email one at a time as each user completes the task.  How could I do this if the variable was declared as an array?
Post #1683
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 3:46am

 
Execution: 0.109.10 queries.Compression Enabled.

Copyright © 2002 - 2009 Skelta Software. All rights reserved. Tel: 1 (678) 306 4110 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company