Close all open tasks for the instance

Use this step to close all open tasks for the current process instance.

Last published at: July 10th, 2023

CloseOpenTasks Step

Description:

Closes all open tasks for the workflow 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 definition called “CloseOpenTasksDef”
  • Select the definition and click the “design” button
  • Drag the above process steps to the canvas
  • Connect the dots between the start and “closeOpenTasks” step
  • Configure the CheckListTask, ChoiceTask, and the RouteForm steps
  • Click the "closeOpenTasks" step to configure its "Settings" properties. Provide a name to the step.

 

  • Click the "closeOpenTasks" step to configure its "Advanced" properties. Then, select one of the task steps from the drop-down list to configure the step.   

 

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

 

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

 

Definition Sample:

You may download the sample definition(s) from the link here and later import it (drag-drop) to 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 import. Then, save the definition to confirm the changes.

Click here to download the sample file.