To complete an open Workflow Interactive Task you can use workflow.completeTask()
. The function needs to be called from the open task's related Form and you can optionally pass in a completion state and reason text.
Once a task has been completed the Workflow Job will proceed to the next node in the Workflow Process and that task cannot be reopened.