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
}
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
Properties
id
Transition ID.
name
Name of the next block.
transitionName
Name.