Skip to content

Element <memstore>

Purpose: Deprecated setup declaration: accepted with a warning and ignored; no custom store is created.

Why: Accepted with a warning for existing descriptors; the built-in Memstore needs no declaration.

Example

1
<memstore id="mem"/>

Decision guide

Business value: Keeps existing models executable while directing users to the built-in mem source and target.

  • Use when

    • Reading an existing model that still declares a Memstore.
  • Choose another approach when

    • Writing a new model: use target='mem' and source='mem' with sourceEntity directly.

Complete examples

Run an existing model with a deprecated Memstore declaration

Keep the old declaration while upgrading; it warns without changing Memstore reads or writes.

legacy-memstore/datamimic.xml
1
2
3
4
5
6
7
<setup schemaVersion="1.0" numProcess="1">
    <memstore id="mem"/>
    <generate name="customers" count="2" target="mem">
        <key name="id" generator="IncrementGenerator"/>
    </generate>
    <generate name="customer_copy" source="mem" sourceEntity="customers" target="LogExporter"/>
</setup>

Rules and invalid combinations

W005 — Deprecated Memstore Declaration Ignored

in descriptor '{descriptor}' is deprecated and ignored; execution continues. The built-in Memstore needs no declaration. Use target='mem' to write and source='mem' with sourceEntity to read. This declaration does not create a custom source or target ID.

Why: The descriptor declares a Memstore even though the runtime provides the built-in mem source and target.

Resolution: Remove the declaration when updating the model; keep its data-producing and data-reading steps.

Full rule

Allowed parents / Allowed children

Allowed parents: else, else-if, if, setup, while

Allowed children:

None

Attributes

Show all 1 attributes

id

Legacy identifier; the declaration is ignored and does not rename the built-in mem source or target.

required; string.