How I can get the next task?

I’m using Camunda Platform 7. I need to get the name of the next task.
How I can get the next task?
Is there any way to do it through the API?

Hello my friend! Welcome to forum! :smiley:

Unfortunately this is not possible, because imagine that there may be several paths to a next task, and until the previous task is completed, the Camunda engine still does not know what the next step will be, and the next step could change according to some variable that will come.

Perhaps you could use repositoryService to try something similar to what you need.

Kind regards.
William Robert Alves

Searching here on the forum I found a user who did exactly the way I reported above, using the repository service.

Hope this helps you:

William Robert Alves