Actor filter that returns a list of user
In the workflow I'm working on, there's a task that has a form which contains a reassign feature wherein the taskdoer can reassign the current task to another user.
My question is, how do I make it so that in the actor filter, there's an if condition where if the task is reassigned to another user, it will be automatically assigned to the chosen user, else if it's not reassigned, the task will be available for a group of users to take.
There's a actor filter shared to this community which returns a list of users but, I was not able to make it work.
I would appreciate your help. Thank you!
If I understand properly, you have a form with an action (bound to a button I guess) that call Bonita REST API to assign the task to someone else ?
Is it ok for your use case that 'everyone' can reassign the task and not only the manager ?
The re-assign feature should be implemented outside a process form ihmo. This is more something that should be done in a living app or using the portal otherwise you will have to implement it for each task where you need the feature.
Are you using a living app above your processes form ? Or using the portal ?
So there is a task in the workflow that will be available for managers only called "reassign" that will have an infinite loop. With this task, a manager can re assign other tasks from the current case. Do I understand it properly ?
I don't think it's the best way to implement this behavior. You are mixing your process logic with a process management task. If reassignment must be tracked in the process then it should have its own dedicated task.
I struggle to picture what you are expecting when clicking on reassign as a manager as you are not executing the task in this case so having a loop on it the doesn't make sense.
I'll try to design a small example of how I think this use case can be solved as it seems to be a pretty interesting and common need.