new BusinessMessage()
BusinessMessage
Represents a message connected to a changed (modified, added, deleted) row
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options.rowChange |
RowChange |
<optional> |
row to check |
options.r |
DataRow |
<optional> |
DataRow to check, needed if rowChange is not provided |
options.post |
boolean | true is is a post commit data check * @param {string} options.toCompile | |
options.shortMsg |
string | rule name, audit["title"] | |
options.longMsg |
string | complete message, used for merging , audit["message"] compiled | |
options.idRule |
string |
<optional> |
id of the business rule, audit["idaudit"], means to be the b.r. "group code" |
options.idDetail |
int |
<optional> |
id of the detail for the business rule, audit["idcheck"], b.r. number |
options.environment |
Environment | ||
options.canIgnore |
boolean | true if it is a warning, false if it is an unrecoverable error (audit["severity"].toLowerCase()==="w") |
- Source:
Extends
- BasicMessage
Members
openSubstitutions :Array.<OneSubst>
Type:
- Array.<OneSubst>
- Source:
Methods
compileParameter(rowChange, expr)
Translate a Parameter name into a value, taking data from A and related. If it is not possible to extract it,
pushes a new open substitution to the openSubstitutions array and returns the uncompiled expression
Parameters:
Name | Type | Description |
---|---|---|
rowChange |
RowChange | |
expr |
string |
- Source:
findPostingColumn(t, field) → {string|null}
Evaluates the column corresponding to a db field
Parameters:
Name | Type | Description |
---|---|---|
t |
DataTable | |
field |
string |
- Source:
Returns:
- Type
- string | null
getParameter(focusedRow, colName, msgTable, fromTable) → {string}
Gets parameter from row or delays evaluation adding an open substitution to the openSubstitutions list
Parameters:
Name | Type | Description |
---|---|---|
focusedRow |
DataRow | |
colName |
string | |
msgTable |
string | |
fromTable |
string |
- Source:
Returns:
- Type
- string