Attribute - Note

Profile : currentTxn
Attribute : Note
Type : String
Meaning: Transaction level notes specified by the cashier during the transaction
Sub-Attribute: NA
Operators: contains, exists, isEmpty, isNotNull, isNull, matches,notExists, “==”
Syntax: currentCustomer.notes.[Operators][Value]
Example: currentTxn.notes.contains("FTCR")

ProfileAttributeSub-AttributeOperatorExpression and Example
currentTxnnoteNAcontains - used to see if the string contains the defined valuecurrentTxn.notes.contains("FTCR")
currentTxnnoteNAexists - Some proper value exists for this string (i.e. source passed a value that was not an empty string)currentTxn.notes.exists("Special discount")
currentTxnnoteNAisEmpty - The string is either Null or EmptycurrentTxn.notes.isEmpty()
currentTxnnoteNAisNotNull - checks if the string is NOT Null i.e. some value was passed from the source (even an empty string counts)currentTxn.notes.isNotNull()
currentTxnnoteNAisNull - checks if the string is Null i.e. it was not passed from the sourcecurrentTxn.notes.isNull()
currentTxnnoteNAmatches - this is used to perform regular expression-based matching on the stringcurrentTxn.notes.matches("Delay*")
Example: write a rule to check if the current transaction has a note regarding "discount applied".
Rule: currentTxn.note.contains("discount applied)