Syntax | report(domain, state, description, parameter, timestamp); report(domain, state, description, details); | |
---|---|---|
Semantics | Use the | |
Substitutables | domain | String literal defining an error domain. |
state | Boolean, true or false: This will result in setting the status field in the log entry to OK respectively ERROR. | |
| String literal containing a log message. | |
parameter | String literal containing an additional custom message. You can either log a parameter string or a details object. | |
timestamp | Bridge 7.0.0-beta2 A custom timestamp. This parameter is optional. If it is not given, the timestamp in the transaction log will be generated from the current timestamp. | |
details | Runtime 2020.6 Builder 7.8.0Object of complex type (class or array) that contains additional details. The contents of this object will be flattened and logged instead of parameter . | |
Examples | Error Detail Object: { "element": "YY-2388", "value": "Connector" } Report Statement With Custom Timestamp: report("Stock_Synchronization", true, "Synchronization started.", "Item: YY-2388", myTimestamp);
Report Statement With Error Detail Object: report("Stock_Synchronization", true, "Synchronization started.", errorDetail);
Report With Error Detail Array:
|