How I can get the next task?

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