Skip to content

Element <echo>

Purpose: carries free text as element content and takes no attributes.

Why: Use it for intentional descriptor diagnostics; do not use it as a data exporter.

Example

1
<echo/>

Decision guide

Business value: Makes intentional descriptor diagnostics visible during execution without changing product data.

  • Use when

    • A model author needs a small, deliberate execution diagnostic.
  • Choose another approach when

    • Producing customer data, platform artifacts, or structured operational logs.
  • Prerequisites

    • Keep output free of secrets and personal data.

Complete examples

Repeat a row-local operation under an explicit stop condition

Use while only for bounded iterative logic that cannot be expressed as direct field dependencies; echo is useful while diagnosing that loop, not as an exporter.

bounded-loop/datamimic.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<setup>
    <generate name="loop_result" count="1" target="LogExporter">
        <key name="n" script="0"/>
        <while condition="3 > n">
            <echo>looping, n is {n}</echo>
            <key name="n" script="n + 1"/>
        </while>
        <key name="final_value" script="n"/>
    </generate>
</setup>

Rules and invalid combinations

No additional element-specific rules. Required attributes, types, and supported values are shown below.

Content forms

  • text — Use the element body as the diagnostic text to emit.
  • Required attributes: None

Allowed parents / Allowed children

Allowed parents: else, else-if, generate, if, iterate, nestedKey, setup, while

Allowed children:

None

Attributes

Show all 0 attributes

None