Skip to main content
1-Visitor
July 28, 2017
Solved

Reset participants of a long running workflow activity

  • July 28, 2017
  • 2 replies
  • 3367 views

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

Best answer by BhushanNehe

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

       

2 replies

1-Visitor
July 28, 2017
1-Visitor
July 28, 2017

Thank you Sergey.

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

21-Topaz I
July 31, 2017

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.

16-Pearl
August 2, 2017

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

       

1-Visitor
August 3, 2017

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