Joget V6 Json api to reassign participant not working

Confluence User - 28 Sep, 2018

I am trying to re-assign the activity to another user using below json api's but actual reassignment is not happening even though api returns 200 status.

 

http://localhost:8092/jw/web/json/monitoring/activity/reassign?activityId=72_23_myapp3_myprocess3_activity1&username=admin&replaceUser=cat

Or

http://localhost:8092/jw/web/json/monitoring/running/activity/reassign?processDefId=myapp3:1:myprocess3&processId=23_myapp3_myprocess3&activityId=72_23_myapp3_myprocess3_activity1&username=admin&replaceUser=cat

 

After making above call/calls, still the activity is assigned to admin only and i can't see the activity in cat users inbox. What I am missing here.

 

Thanks in advance

 

jsonapi

2


28 Sep, 2018
confluenceUser
1
confluenceUser

Hey there parashuram, 

Do take close notice of the parameter description in JSON API#web/json/monitoring/activity/reassign

  • username - username that will replace the assigned user
  • replaceUser - username of an existing assignee of the assignment

According to your APIs above, cat would be an existing assignee and assignment will be reassigned from cat to admin, which is correct in terms of API, but incorrect for your use case.

The correct API for your case would be:

http://localhost:8092/jw/web/json/monitoring/activity/reassign?activityId=72_23_myapp3_myprocess3_activity1&username=cat&replaceUser=admin


Hope this helps!

28 Sep, 2018
confluenceUser
confluenceUser

Ahh!! My bad..It worked perfectly. Thanks a lot for your time.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print