| | | Forum Guru
       
Group: Forum Members Last Login: Monday, May 12, 2008 Posts: 10, Visits: 42 |
| | 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 |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, April 10, 2008 Posts: 23, Visits: 38 |
| | 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 |
| | | | Forum Guru
       
Group: Forum Members Last Login: Monday, May 12, 2008 Posts: 10, Visits: 42 |
| 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 |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, April 10, 2008 Posts: 23, Visits: 38 |
| | 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 |
| | | | Forum Guru
       
Group: Forum Members Last Login: Monday, May 12, 2008 Posts: 10, Visits: 42 |
| | 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 |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, April 10, 2008 Posts: 23, Visits: 38 |
| | 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 |
| | | | Forum Guru
       
Group: Forum Members Last Login: Monday, May 12, 2008 Posts: 10, Visits: 42 |
| | Hi, I'm sorry, I'm not a developer. What do I do with this code? Where should I write it?
manuelapalma |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, April 10, 2008 Posts: 23, Visits: 38 |
| | Hi Manuela, You might need to use a Script action. Can I get the scenario in which you need to use this? Regards, RSimon |
| | | | Forum Guru
       
Group: Forum Members Last Login: Monday, May 12, 2008 Posts: 10, Visits: 42 |
| I'm attaching an export of the process that I need to use this in
manuelapalma
|
| | | | |
|