Description:
This step closes a group of process steps with an “open” or “sleeping” status and returns values as configured in the design.
Inputs
- stepConfig - Configure steps and their return values
Returns
- True - Step executed successfully
- False - Step failed execution
Usage:

Example:
Let’s build and execute the “ClosedTaskGroupDef” example:
- Create a new process definition named “ClosedTaskGroupDef” and open it in designer mode.
- Drag a “Task, RouteForm, and closedTaskGroup” steps to the canvas.
- Connect the dots between the “Start” and other steps as shown above. Select the connection line between “Task 1” and “ClosedTaskGroup” and change the type to “rejected”.
- Click a "Task" step to configure its "Required" properties. Provide a unique name for the step. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click a "Task" step to configure its "Optional" properties. Select the users to route the task to. Click the Save button. In this example, the task is assigned to the user who creates the process instance using “variable.initiatorID” as a system variable.

- Repeat the “Task” step configuration for the remaining “Task” steps.
- Click the "RouteForm" step to configure its "Required" properties. Provide a name for the step. Select a Form Definition from the drop-down list. Provide a variable or global reference to store the Form Instance ID. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click the "RouteForm" step to configure its "Optional" properties. Select the users to route the task to. Click the Save button. In this example, the Form task is assigned to the user who creates the process instance using “variable.initiatorID” as a system variable.

- Click the "CloseTaskGroup" step to configure its "Required" properties. Provide a name for the step. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click the "CloseTaskGroup" step to configure its "Optional" properties. Click the button to configure the steps. A pop-up window is displayed for configuration. Click the “Add Row (+)” button to insert an empty row. Select the step name from the drop-down list. Provide a return value for this step. You can add multiple steps using the “Add Row” button. Click the Save button to finish.

- 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 instance, execute it, and render the process instance.

- Navigate to “Items > Tasks” to view the task and its “open” status.

- Navigate to “Engage > Tasks”.

- Select “Task 1” from the list. The task is rendered on the same page. Provide comments and “reject” the task. The workflow continues to execute the “CloseTaskGroup”, the next step in sequence.

- The process step “CloseTaskGroup” is executed, and the set of tasks configured by a group is “closed” as configured. Refresh the task page and select the process instance to view the “closed” task status.

- Also, refresh the process instance page to view the “closed” task status.

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.