AnsweredAssumed Answered

Choose the transition to pass in endTask()

Question asked by midoscofield on Aug 5, 2015
Latest reply on Aug 5, 2015 by darkredd
<blockquote>endTask(transitionId) ends the task and signals the associated workflow path to progress to the next node using the specified transition.</blockquote>

The form of my task to end includes two transitions buttons "Approve" and "Reject".
When I try:
task.endTask ("Next")
that simulates the click on "Reject" But I need to click "Approve" .Even if i try to list  transitions of this task ,I can find only one called "Task done".

Any ideay please how to choose the other transition ?