1.) I want to fetch the task Id/task Instance Id of a user task
2,) Can we restart a user task using Task Instance Id?
What do you mean by “fetch”? I can only guess here, but you could use a task#create listener to execute code that publishes the taskInstantId of a task just being created.
The concept of “restart” is also unclear … you can use the process modification API to cancel a task and move the token before the task again, thus forcing creation of a new task … but that will technically be a new taskInstance, not a restart of the first one …
1 Like