Close Tasks

Close all open tasks for the instance

Last published at: September 6th, 2025

CloseOpenTasks Step

Description:

This step closes all open tasks for the process instance. 

 

Inputs:

  • selectStep – optional input, if not provided, will close all open tasks for the process instance.  If the step is configured, only open tasks for the selected step will be closed
 

 

Returns:

  • True – step executed successfully
  • False – step failed to execute 
 

 

 

Usage:

 

 

Example:

Let’s build and execute the “CloseOpenTasksDef” example.  

  • Create a new process definition named “CloseOpenTasksDef” and open it in Designer mode. 
  • Drag the “closeOpenTasks, checkListTask, choiceTask, and routeForm” steps to the canvas.
  • Connect the dots between the “Start” step and the other steps shown above.
  • Click the "closeOpenTasks" step to configure its "Required" properties. Enter a name for the step. Then click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 
     

 

  • Click the "closeOpenTasks" step to configure its "Optional" properties. Then, select a task step from the drop-down list to configure it.   

 

  • The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. This is achieved by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new process instance, and execute it. The step should close all open tasks for the selected step type. If the step type is not configured, all open tasks for the current process instance will be closed in FlowWright.

 

Definition Sample:

You may download the sample definition(s) from the link provided and later import them (drag-and-drop) into your FlowWright Process Definition (XML file) or Form Definition (HTML file) page. 

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after the import. Then, save the definition to confirm the changes. 

Click here to download the sample file.