Description:
The step retrieves the comments provided for the task step.
Inputs
- varGlobalComments – Variable / Global to hold comments
Returns
- true – true condition
- false – false condition
Usage:

Example:
Let’s build and execute the “getTaskCommentsDef” example.
- Create a new process definition named “getTaskCommentsDef” and open it in designer mode.
- Drag the “Task, getTaskComments” steps to the canvas.
- Connect the dots between the “Start” and other steps, as shown above.
- Define a variable or a global variable to store the task comments.
- Click the “Task” step to configure its “Required” properties. Enter the name and task description. 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 “Task” step to configure its “Optional” properties, then route the task to yourself or another user. In this case, the system variable “variable.initiatorID” routes the task to the user who initiated the process instance.

- Click the “getTaskComments” step to configure its “Required” properties. Provide a name for the step and a variable or global reference to store the comments.

- The “Logging” configuration is necessary for documentation and to measure workflow progress and percent complete. This is done 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, and execute it. The task is assigned to the configured user. You'll need to navigate to the Engage - Task page to view the task or use the task notification. Click the task row to open it.

- Enter the task comments, then click the Complete Task button.

- The task is complete, and the process moves to the getTaskComments step in the workflow. The task comments are fetched and initialized in the variable or global reference provided. The process is complete.
- Navigate to the "Process Instances" page. Select the process instance and render it. Click the “getTaskComments” step to view its properties. This step retrieves the task comments.

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 any missing configuration steps, 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.