Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0
Div
Classe2e-refDiv
Rp
Syntax
Code Block
languagenone
report(domain, state, description, parameter, timestamp);
report(domain, state, description, details);
Semantics

Use the report() function to write log messages into the transaction log file of the xUML service. The logged information is usable for all kinds of purposes, such as e.g. performance measurements or statistical evaluations. The report() function provides the same functionality as the Log Adapter.

The transaction log level of the xUML service must be at least set to Custom to be able to log to the transaction log.
SubstitutablesdomainString literal defining an error domain.
stateBoolean, true or false: This will result in setting the status field in the log entry to OK respectively ERROR.
description String literal containing a log message.
parameterString 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.

Info
iconfalse

timestamp and details are mutual exclusive: You cannot provide a custom timestamp when providing a details object.
In this case, the custom timestamp will be overwritten by the actual date and time.

detailsRuntime 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:

Code Block
{
    "element": "YY-2388",
    "value":   "Connector"
}

Report Statement With Custom Timestamp:

Code Block
languagenone
report("Stock_Synchronization", true, "Synchronization started.", "Item: YY-2388", myTimestamp);

... OK Stock_Synchronization CUSTOM Synchronization started. Item: YY-2388

Report Statement With Error Detail Object:

Code Block
languagenone
report("Stock_Synchronization", true, "Synchronization started.", errorDetail);

... OK Stock_Synchronization CUSTOM Synchronization started. e2e:type='ErrorDetail', element='YY-2388', value='Connector'

Report With Error Detail Array:

... e2e:type='ErrorDetail' , [0].element='YY-2388', [0].value='Connector', [1].element='YZ-1222', [1].value='Adapter'

Multiexcerpt include
MultiExcerptNamelog
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE