:ADD_COMMENT
Use the :ADD_COMMENT script statement to add a comment to a task. Comment entries include the name of a User object. The user who activated the object called by the script statement is automatically shown in the comment area.
Syntax
:ADD_COMMENT [RunID], comment
Parameters
| Parameter | Description | Format |
|---|---|---|
| RunID |
(Optional) RunID of the task to add the comment to. Note: If you do not specify a RunID, the comment is added to the task that executes the script statement. |
Script literal, script variable, or number |
| comment |
Comment text. Maximum characters: 1024 Important! The value you assign to a script variable is unlimited. However, when you use a script variable to define a comment text, the value of the script variable is automatically truncated to 1024 characters. |
Script literal or script variable |
Examples
The following example adds a comment to the task that contains the script. The text in the comment is stored in a script variable.
:ADD_COMMENT, &TEXT#
In the following example, the script retrieves the RunID of the top Workflow, and adds a comment to that Workflow.
:SET &TOP_JP_RunID = SYS_ACT_TOP_NR()
:ADD_COMMENT &TOP_JP_RunID, "Successfully started file transfer."
See also: