Cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Attribute on an item using dynamic participant value

Experimenter
Experimenter

I have struggled with workflow handlers epm-set-property and epm-set-task-result-to-property.  I am trying to capture the signoff person and assign that value to a property.  Also, using dynamic participants, can I assign a person to the dynamic object using the OOTB keywords like $USER?  I cannot seem to get it to take..

Can I take the dynamic participant value and assign that to an attribute?

 

7 REPLIES

Re: Assign Attribute on an item using dynamic participant value

Legend
Legend

Yes, $USER can be used to assign the current signoff person as a Participant using EPM-assign-responsible-party-dynamic-participant action handler.

https://docs.plm.automation.siemens.com/tdoc/tc/11.2.3/help#uid:xid1256819:index_workflow_designer:i...

 

All participant types coming with TC Foundation  has an equivalent compound property on the item revision.

 

If the participant type is a single assignee participant, User ID and GroupMember are available on the Item Revision.

If the participant type is a multiple assignee participant, only GroupMember is available on the Item Revision.

 

Similar behavior can be configured for custom participant types by defining compound properties using HasParticipant relation.

 

These participant specific properties can be reused to model the necessary behavior as required.

 

Mahendra

 

Re: Assign Attribute on an item using dynamic participant value

Creator
Creator
Hi Mahendra,
I have gone through your post ,it seems like you have very good understanding in Change management.

I am assigning dynamic participants Change SpecialisI-I to resource pool based on some conditions through itk code, upon completion of the task I want update his user ID to dynamic participants to change specialistt-I along with his respective user I'd/group/role which is being used during task completion
Do you have any idea on this ?
Is there any API to modify dynamic participants through ITK ?

Re: Assign Attribute on an item using dynamic participant value

Legend
Legend

Hello Indra

 

Ideally you can use EPM-assign-responsible-party-dynamic-participantn handler in the complete action of the task with -assignee argument as $USER to update the participant. But by default it uses user's default group/role instead of user's current session group/role 

 

Instead, if you want to have a custom action handler to do this, you can use the below ITK calls to create participant and add to item revision.

EPM_get_participanttype

EPM_create_participant

ITEM_rev_add_participant or ITEM_rev_update_participants

 

Regards

Mahendra

Re: Assign Attribute on an item using dynamic participant value

Creator
Creator

Hi Mahindra,

 

Thnak you for the suggestion.

We are using Old version of TC (tc-8.3.6) so EPM-assign-responsible-party-dynamic-participantn handler is not available.

Is there any other approach to achive this use case.

 

extern EPM_API int EPM_create_participant(

tag_t assignee, /**< (I) The assignee tag. This can be either a group member tag or a resource pool tag. */

tag_t participant_type, /**< (I) The type of participant that needs to be created */

tag_t* participant /**< (O) The tag of the new participant object */

 

);

Shall i pass current  logged in user tag as assignee in API EPM_create_participant or i have to pass group member tag or a resource pool tag of current logged in user in case of customization ?

Thanks.

 

Re: Assign Attribute on an item using dynamic participant value

Legend
Legend

The assignee tag cannot be user tag. As mentioned in the document, it can be either groupmember tag or resourcepool tag

 

Mahendra

Re: Assign Attribute on an item using dynamic participant value

Creator
Creator

Hi Mahindra,

 

ITEM_rev_update_participants API is not avalible in TC 8, Is there any other ITK API or approach to update.

 

Thank you for your timely response  and i approciate your suggestion.

 

Thanks

Re: Assign Attribute on an item using dynamic participant value

Legend
Legend

You can try ITEM_rev_set_participants API