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?
Yes, $USER can be used to assign the current signoff person as a Participant using EPM-assign-responsible-party-dynamic-participant action handler.
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.
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.
ITEM_rev_add_participant or ITEM_rev_update_participants
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 ?
The assignee tag cannot be user tag. As mentioned in the document, it can be either groupmember tag or resourcepool tag
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.