Invokes the model defined in Transformation on the string pString, identifying
sections, headers and key-value pairs as specified in the model. These elements are returned through
an pOutput object of the output class specified in the model, defaulting to
pString may also be supplied as an array of strings representing consecutive lines of
text (by reference). To invoke the model in batch on a bunch of records, use %ApplyBatch().
Invokes the model specified in Transformation on all records retrieved by
pResultSet, populating and saving an output object for each record. The first column of
pResultSet is used as an identifier and saved as the Ref property of the output object.
The second column is assumed to contain the text to be transformed by this model.
Note that the output object used for this batch operation should inherit from %Persistent
in order for the output to be effectively persisted.
Helper method to create a Section object. Custom code in any of the callbacks (such as
%OnBeforeTransformation()) may invoke this method to add default sections.
Note that no further callbacks are invoked for key-value pairs in the pKeyValues array.
method %OnAfterTransformation(ByRef pOutput As Output) as %Status
This callback method is invoked after a record has been processed, before the Output object is saved.
method %OnBeforeTransformation(ByRef pOutput As Output) as %Status
This callback method is invoked before a record is processed, after the Output object has been instantiated.
Callback method invoked upon the creation of a KeyValue object.
Use this callback to customize behavior upon creating key-value pairs. Setting pKeyValue
to null will prevent the key-value pair from being added to the output.