Skip to main content
2-Explorer
Jul 28, 2017 12:21 PM UTC
Solved

Reset participants of a long running workflow activity

I have a workflow task which is assigned to a WTGroup. When the task is alive, users get added and removed to the group. The workflow tasks which are alive does not reflect any changes made to the group, I tried modifying the wf team and it works only for new tasks not the already existing ones, reassignment through API works but this is not a reassignment so I do not want to use that option. Any thoughts on an API which I can do to refresh the existing tasks? Thanks in Advance. 

 

wftask.jpg

16-Pearl
Aug 2, 2017 6:18 PM UTC

Hi Binesh,

Did you try the following API to see if that allows you to refresh the team with the group modification and task addition/deletion.

 

    wt.team.TeamHelper.service.augmentRoles(Obj, wt.team.TeamReference.newTeamReference(wt.team.TeamHelper.service.getTeam(Obj)));

 

If this works you might want to check if there is a event for  on Group modification and try a listener.

 

Regards,

Bhushan

       

7 replies

1-Visitor
Jul 28, 2017 12:57 PM UTC
2-Explorer
Jul 28, 2017 1:46 PM UTC

Thank you Sergey.

Unfortunately, the PBO I am dealing with is AbstractWP, not  a VersionableChangeItem.

Translate
21-Topaz I
Jul 31, 2017 7:31 PM UTC

Go to the change object and go to the Actions button.

Select Reassign Llife Cycles.

The default selection is "Use Latest iteration of current Life Cycle template.

The second default option is "Preserve current state" which is typically what you want.

Then also add a reason why you are doing this in the note box.

Translate
16-Pearl
Aug 2, 2017 6:18 PM UTC

Hi Binesh,

Did you try the following API to see if that allows you to refresh the team with the group modification and task addition/deletion.

 

    wt.team.TeamHelper.service.augmentRoles(Obj, wt.team.TeamReference.newTeamReference(wt.team.TeamHelper.service.getTeam(Obj)));

 

If this works you might want to check if there is a event for  on Group modification and try a listener.

 

Regards,

Bhushan

       

Translate
2-Explorer
Aug 3, 2017 3:14 PM UTC

Hello Bhushan,

Thank you for the reply.  augumentrole API didn't update the tasks assignment, I am wondering this is because the task is assigned to the group instead of a role

 

Translate