getTaskComments Step
Description:
The step gets the comments provided to 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 definition called “getTaskCommentsDef.”
- Select the definition and click the “design” button
- Drag the “Task, getTaskComments” steps to the canvas
- Connect the dots between the Start and other steps as above
- Define a variable/global to store the task comments information
- Click the “Task” step to configure its “Required” properties. Provide the name and task description. Click the Save button.

- Click the “Task” step to configure its “Optional” properties. Then, route the task to yourself or a user. Here, the system variable.initiatorID routes the task to the user initiating the process instance.

- Click the “getTaskComments” step to configure its “Required” properties. Provide a step name. Provide the variable/global reference to store the information on the task comments.

- 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 instance, and execute. The task is assigned to the user as configured. You'll have to navigate to the Engage - Task page to view the task or use the task notification. Click the task row to open the task.

- Provide the task comments and click the Complete Task button to confirm.

- The task is completed, and the process moves to the getTaskComments step in the workflow. The task comments are fetched and initialized in the variable/global reference provided. The process is completed.
- Render the process instance. Click the getTaskComments step to view its properties. This step gets the task comments.

Definition Sample:
You may download the ZIP file and extract the sample definition(s) from the link here. Then, you can 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.