Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Configuration » Action's Actors

11 posts, Page 1 of 2. 12»»

Action's ActorsExpand / Collapse
Author
Message
Posted Tuesday, March 18, 2008
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Friday, April 03, 2009
Posts: 10, Visits: 43
Hi,
I am trying to find a way to show the actor's name of the actions and I am not achieving that. Through the "Variable.Submitted by" is identified only the actor who initiated the process, but is not that I wish.
 
So my question is: which is the variable that identifies the actors who play the actions throughout the process?
 
Thanks
 
Manuela Palma


manuelapalma
Post #670
Posted Tuesday, March 18, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Hi Manuela,

If you need the name of the actor who is acting on an activity, you can use the property Value.SendTo.

Each of the human activities have workflow variables for storing details of actors etc.

For example, how to define variables for use in Approval activities is described below. This gives the syntax for creating the variables and typical examples for different cases.

Variables for capturing WorkItemIds

The Activityids for the activity can be retrieved using a variable of type array, with the following syntax:

'^'+CurrentActivity.Name+'WorkItemIds' 

For example, ^ManagerApprovalWorkItemIds

Variables for capturing All Actors' Details

The details of the actor(s) to whom the approval work item gets assigned can be accessed by declaring a variable of type array with the following syntax:

'^'+CurrentActivity.Name+'ActingUsers' 

For example, ^ManagerApprovalActingUser.

Variables for capturing Responding Actors' Details

The details of the actor(s) submitting the approval/rejection response can be accessed by declaring a variable of type resource with the following syntax:

'^'+HWSActivity.ActivityName+'RespondingUser' 

For example, ^ManagerApprovalRespondingUser.

Variables for capturing Approving/Rejecting Actor Details

The details of the actor(s) submitting either approval or rejection response can be accessed by declaring a variable of type array with the following syntax:

'^'+ activityName+'ApprovingUsers' (or)

'^'+ activityName+'RejectingUsers'

For example, ^ManagerApprovalApprovingUsers or ^ManagerApprovalRejectingUsers.

Variables for capturing Comments

To capture the comments entered by an actor, add a variable with a name prefixed by '^', with the following syntax:

'^'+_WorkItem.HWSActivity.ActivityName+'CommentApproved'/'CommentRejected'.

For example, if a comment entered along with an approval submission has to be retrieved from an activity named 'ManagerApproval', add a variable with ^ManagerApprovalCommentApproved as its name. If a comment entered along with a rejection submission has to be retrieved from the same activity, i.e., 'ManagerApproval', add a variable with ^ManagerApprovalCommentRejected as its name. The variable gets initialized with the comment entered by the actor, after the activity response is submitted.

There are similar variables for each of the human activities, you can check the Skelta BPM.NET 2007 Developer Help for more details.

Regards,

Roni

Post #671
Posted Tuesday, March 18, 2008
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Friday, April 03, 2009
Posts: 10, Visits: 43
How can I use the property Value.SendTo. in the Action Update Variable? I'm trying to write the name of the current user to a variable during the update variable task

manuelapalma
Post #676
Posted Tuesday, March 18, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Hi manuelapalma,

Value.SendTo will not be accessible in case of an update variable. You will have to use the workflow variables as described earlier if it needs to be accessed outside the context of the human activity.

Regards,

Roni 

Post #678
Posted Tuesday, March 18, 2008
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Friday, April 03, 2009
Posts: 10, Visits: 43
I've already tried the solutions mentioned above and I allways get a blank value.

How exactly should I define the variable in the start of the process so that I can use it in the update variable task?

In my AnalysisDTI activity I tried using ^AnalysisDTIActingUser in the update variable but it returns a blank, and I defined ^AnalysisDTIActingUser as a variable at start of type Array (also tried with type string, but with the same result)

manuelapalma

Post #680
Posted Tuesday, March 18, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
You need to define the variable of type array. A sample code for getting the list of actors from the workflow variable ^AnalysisDTIActingUser in VB script (ctx is the current context and logger is the Skelta Logger)is as below.

         Dim AL As New ArrayList()

          AL = ctype(ctx.Variables.Item("^AnalysisDTIActingUser").Value,ArrayList)

  

         Dim i As Integer

 

         For i = 0 To AL.Count-1

 

            logger.Loginformation(" Value : " + AL(i).ToString())

 

         Next

Hope this helps.

Regards,

Rsimon

Post #681
Posted Tuesday, March 18, 2008
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Friday, April 03, 2009
Posts: 10, Visits: 43
Hi,

I'm sorry, I'm not a developer. What do I do with this code? Where should I write it?

manuelapalma

Post #682
Posted Tuesday, March 18, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Hi Manuela,

You might need to use a Script action.

Can I get the scenario in which you need to use this?

Regards,

RSimon

Post #683
Posted Tuesday, March 18, 2008
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Friday, April 03, 2009
Posts: 10, Visits: 43
I'm attaching an export of the process that I need to use this in

manuelapalma

  Post Attachments 
Desejo_Sem_Limites_PQ00ProcessManager_v3.zip (529 views, 10.46 KB)
Post #684
Posted Wednesday, March 19, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Manuela,

In the action AnalysisDTI, if you are trying to display the name of the actor in the body property, you can use the sendto variable as shown in the attachment. You will get all the properties associated with a user in the second dropdown on top and you can select the appropriate property. But if you need to get the name of all the actors assigned for an activity, you might need to use a script activity as mentioned earlier.

Regards,

RSimon

  Post Attachments 
Body.JPG (412 views, 39.07 KB)

Post #688
« Prev Topic | Next Topic »

11 posts, Page 1 of 2. 12»»

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 10:57am

 
Execution: 0.188.11 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