there is something like a previousActorID on the task, but I do not know exactely how it should be used and if it does what you want. I myself currently use a process-variable for this. Works nice
Thank you. No, that's not what I wanted. The previous actorId should be used if task is assigned to another person, so that you can find out who worked on it before.
Then I write the things I need to a "taskinformation object" or similar, that is stored in an action or through the assignment handler.
Just don't want too build sth. when it's already there somehow.
Greets from Hamburg
The requirement is not completely clear to me. Anyway, method TaskMgmtSession::findTaskInstances(actorId) might help you. It finds all non-ended, non-canceled tasks belonging to a user. If you need to find ended tasks, you might still want to take a look at its source code as a start point for your own query.