The Note component is used to create and add notes to a process instance, and retrieve note text and properties.
Every process instance includes the notes predefined variable, which is as an array of Notes.
In this example, the Note component is used to create a new note in the current process instance:
create Note
using text = "This is a new Note generated programmatically"
In this example, the predefined variable notes is used to retrieve the text and properties of all notes on the current process instance:
for each n in ProcessInstance.notes
do
logMessage "Note text: " + n.text +
"\nCreation activity: " + n.creationActivity +
"\nCreation Time: " + n.creationTime +
"\nCreator: " + n.creatorName
end