cancel
Showing results for 
Search instead for 
Did you mean: 

Complete user task button in our application

kum9sud
Champ in-the-making
Champ in-the-making
We need a complete user task button in our own application. And clicking on that, the user task completion should happen from our spring controller or directly from the listener. How can this be achieved?
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
you could use this method from TaskService:
<code>
  /**
   * Called when the task is successfully executed,
   * and the required task parameters are given by the end-user.
   * @param taskId the id of the task to complete, cannot be null.
   * @param variables task parameters. May be null or empty.
   * @throws ActivitiObjectNotFoundException when no task exists with the given id.
   */
  void complete(String taskId, Map<String, Object> variables);
</code>