Hi All,
I’ve a task which gets assigned to say “Role1” when it queues (Using Assignment Event).
As part of the functionality, a user say “User1” from “Role1” accepts it and says “Approve”.
Instead of completing the task when the user clicks on “Approve”, I set acceptedby list to empty and re-assign the task to another role “Role2”. I’m using updateTask IS service to accomplish the above.
Now the issue is that, when we use searchTasks IS service to retrieve the tasks for “User1” the above task is also listed which ideally should not as the task is now assigned to “Role2”.
The task doesn’t get listed if any user from “Role2” accepts it.
Please find below the inputs i’m passing to searchTasks service.
“includeTaskData” → true
“user” → user for whom tasks needs to be listed
“searchUserTasks” → true
“TaskSearchQuery/DoNotShowAcceptedByOthers” → true
“TaskSearchQuery/ShowNonActiveTasks” → false
and conditions on business data.
“We are not using CAF as the front-end so we need to achieve this using IS services”
Please let me know if I’m doing anything wrong while using searchTasks service or updateTask service.
Thanks in Advance!
Regards,
Sravan
#webMethods#webMethods-BPMS#MWS-CAF-Task-Engine