TaskItemExit

Transition from a process activity

Specify the name of the next block, and the name and identifier of the transition. Task execution:

try {
 // Get task exits 
  const exits = await task.getExits(); 
  // Complete the task 
  // Pass the  exit identifier and form data 
  await task.submitTask (exits[0].id, {comment: 'Task completed'}); 
} catch (e) { 
 // The process  has already been completed; the exception can be handled 
} 

Hierarchy

  • TaskItemExit

Properties

id

id: string

Transition ID.

name

name: string

Name of the next block.

transitionName

transitionName: string

Name.