closeOpenTasks Step

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

Last published at: January 2nd, 2024

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 a "closeOpenTasks" step to the canvas
  • Connect the dots between the start and “closeOpenTasks” step
  • Click on the "closeOpenTasks" step to configure its "Settings" properties. Provide a name to the step.
  •  Click on the "closeOpenTasks" step to configure its "Advanced" properties. Configure the step - by selecting one of the task steps from the drop down list.   
  • 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 step type is not configured then all the open tasks for the current process instance shall be closed in FlowWright.