You can use the Data Asset Export node to write to remove data
sources using connections, write to a data file on your local computer, or write data to a
project.
Example
Copy link to section
import json
stream = modeler.script.stream()
dataassetexport = stream.findByID("<import nodeId>")
# loads the string settings as a json object
userSettings = json.loads(dataassetexport.getPropertyValue("user_settings"))
userSettings["interactionProperties"]["file_name"] = "<new file name>"
dataassetexport.setPropertyValue("user_settings", json.dumps(userSettings))
Copy to clipboardCopied to clipboard
Table 1. dataassetexport properties
Property name
Data type
Property description
asset_type
DataAsset Connection
Specify your data type: DataAsset or Connection.
asset_id
string
When DataAsset is set for the asset_type, this is the ID of
the asset.
asset_name
string
When DataAsset is set for the asset_type, this is the name
of the asset.
connection_id
string
When Connection is set for the asset_type, this is the ID
of the connection.
connection_name
string
When Connection is set for the asset_type, this is the name
of the connection.
connection_path
string
When Connection is set for the asset_type, this is the path
of the connection.
user_settings
string
Escaped JSON string containing the interaction properties for the connection. Contact IBM for
details about available interaction points.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.