g_ETLPipelineSteps_ScriptCursor
ScriptCursor
An ETL script cursor.
Description Scheme code to run for each individual record as it passes through the cursor. The original record is accessible via a variable named "record". The script should return the record (last line of script) after potentially modifying it. Properties
attributeMapping : stringThe attribute mapping for the input attribute names. May be unspecified or null.
Aliasing is performed before the script is run.- Example
'((firstName firstName1) (homeAddress homeAddress1))
attributes : stringThe list of attributes that the cursor passes on to the next step in the pipeline.
Simple attributes or fields of complex attributes can be specified.- Example
A list of simple attributes: '(firstName lastName)
A list with a complex attribute: '(firstName (homeAddress city state))
caption : stringString identifier for caption display in the UI.
copy : stringTrue to copy the record before running the script; false to increase efficiency.
Note that this could have unintended consequences such as modifying persisted instances. If an attribute mapping is specified, records will always be copied.description : stringDescription of this ScriptCursor node.
input : stringThe input cursor name.
layout : stringThis attribute captures the UI layout information for rendering the model in the editor. The values change as users moves the element in the editor.
name : stringThe name of the Script Cursor.
orderBy : stringThe resulting order-by scheme expression (not checked for accuracy).
Only set this if your script breaks the ordering in some way. The order of the actual records won't change. Can be unspecified to use the input cursor's order-by. The syntax of the statement is '(((first_sort_dimension) . #t) ((second_sort_dimension) . #t) ((nth_sort_dimension) . #t)) Use #t to sort in ascending order, and #f to specify a descending order.- Example
A cursor reads from the Person class with the following order by information: '(((@ homeAddress city) . #t) ((@ firstName) . #t))
The data is sorted first by the city name in the complex homeAddress attribute, then by the person's first name.
Content
Sequence of:
Parents
g_ETLActivitySteps_ETLPipeline - Pipelines gather and group cursors and commands together into related units, becoming the defining blocks of your ETL activities.
Parent topic: g_ETLActivitySteps_ETLPipeline