getTaskComments Step

Use this step to get Task Comments.

Last published at: July 27th, 2024

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 getTaskComments example.

  • Create a new definition called “getTaskCommentsDef.”
  • Select the definition and click the “design” button
  • Drag the above 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 “Advanced” 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 “Settings” 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 process 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 on 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 on the getTaskComments step to view its properties. This step gets the task comments.