Is it possible to change a manual activity's properties such as...

Expand / Collapse
 
     

Is it possible to change a manual activity's properties such as participant from .Net code?


The information in this article applies to:

  • AgilePoint Suite
  • AgilePoint Enterprise Manager
  • AgilePoint Envision
  • AgilePoint Developer
  • AgilePoint Server

TOPIC(S)
  Is it possible to change a manual activity’s properties from .Net code. For example, in the application, setting the participant of an approval from the .NET code.
   
SUMMARY
  This can be done using the custom attributes.
   
DETAILS
 

Some of the manual activity’s properties can be set dynamically using the Custom Attribute. For example, you can use custom attribute for the Participants property as well as the Length property of the Time Span.

In the Participants property, you can specify a custom attribute such as $AssignedParticipants and then use your .NET code to set the custom attribute value for ‘AssignedParticipants’. This way you can dynamically set the participant of your manual activity through .Net code.

The following is a sample code snippet in C# to set the custom attribute for $AssignedParticipants:

SetCustomAttr(WorkObjectID, "AssignedParticipants", "DomainA\user1");

In the above code snippet, the user DomainA\user1 is assigned as the participant for manual activity that has the participant property set to $AssignedParticipants.

Using this approach, you can assign multiple users as the participants by using demlited strings (with semi-colon as the delimiter). 

For example:

SetCustomAttr(WorkObjectID, "AssignedParticipants", "DomainA\user1;DomainA\user2");

In the above code snippet, two users are assigned as the participants.

   
Last Reviewed:  
Keywords:  

Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:Wednesday, August 22, 2007
Last Modified By: Brian A
Type: INFO
Rated 2 stars based on 1 vote.
Article has been viewed 862 times.
Options