The decision is recorded and applied
POST /WorkFlow/WorkFlowActions
The click is recorded in TDIRECTACTIONTOKEN as Used, then the workflow engine applies the decision to the matching task:
Approve — if other approvers at this level haven't answered yet, nothing moves on until they do. Once everyone at the level is done: if there's a next level, new tasks are created there (back to Phase 2/3 for the next approver); if this was the last level, the workflow finishes.
Reject — stops immediately, regardless of level. No further approvers are asked.
Return — sends the document back one level (or to the original submitter if it was already at level 1) for changes.