Static to Dynamic Converter
This scenario showcases how to read data from an input with static data type and write into an output with dynamic data type using a Python Operator.
Python Generator generates an example table and sends it as data into the output.
Python Converter will read the input that is receiving a table into a callback method. This method defines a size to each set of data that is sent on the output via a stream. It sends the data in batches until no more data are available on the input.
The Terminal shows all data sent from the Python Operator.
Create and Update Static Types
-
Access the graph configuration and open the data types tab.
-
Create or edit the data types.
-
You will need to define ID, type, description, and properties to your data type.
-
Save the data settings.
-
Access the port configuration to change the data type ID. The custom data type and port must be the same type (structure, table, or scalar).
See the Code for Python Operator
If you would like to see the code used for the operations, use the context menu "Open Script" of the Python Operator.