Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

trace

trace

Provides an execution trace to be used in debugging queries.
The
fn:trace
function accepts items and a label for those items and returns the items unchanged. The exact behavior of the function is implementation-dependent, but generally the processor puts the label and the value of the items in a log file or user console.

Syntax

fn:trace(
value
,
label
)
The following table describes the arguments:
Argument
Required/
Optional
Description
value
Required
The items to trace.
label
Optional
A label to display with the trace information.

Return Value

Based on the items and a label for those items, it returns the items unchanged.

Example

Assume that you have the following variable definition:
let $var1 := 5
The following expression returns
The correct value is: 5
as the result:
fn:trace($var1, 'The correct value is: ')

0 COMMENTS

We’d like to hear from you!