Clone

Native Pascal, workflow preparation

Description

Returns a deep copy of the value: every descendant is rebuilt in a new caller-owned tree with the same kinds, texts, member names and order, and the original tree is left untouched. Stored number text is copied verbatim.

Syntax

Delphi

Function TPLWorkflowJSON.Clone: TPLWorkflowJSON;

Return values

TPLWorkflowJSONA new, caller-owned tree equal in content to this value

Remarks

Cloning enforces the shared work budgets — at most 256 levels of depth, 250,000 nodes and a cumulative 32 Mi of UTF-16 text — and raises an exception when a budget runs out.

See also

WorkflowDataTools, ProbeWorkflowRequest