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 measure the workflow progress and the percent complete. This is acheived 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 from the link here and later import it (drag-drop) to your FlowWright Process (XML) and Form Definition (HTML) page. After import, you must verify the process steps and complete the database configuration, if any. 

 

https://github.com/FlowWrightCode/FW10Steps/blob/main/CloseOpenTasksDef.xml