Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <transformation>
- <info>
- <name>tt_sep</name>
- <description/>
- <extended_description/>
- <trans_version/>
- <trans_type>Normal</trans_type>
- <trans_status>0</trans_status>
- <directory>/</directory>
- <parameters>
- </parameters>
- <log>
- <trans-log-table><connection/>
- <schema/>
- <table/>
- <size_limit_lines/>
- <interval/>
- <timeout_days/>
- <field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field></trans-log-table>
- <perf-log-table><connection/>
- <schema/>
- <table/>
- <interval/>
- <timeout_days/>
- <field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table>
- <channel-log-table><connection/>
- <schema/>
- <table/>
- <timeout_days/>
- <field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table>
- <step-log-table><connection/>
- <schema/>
- <table/>
- <timeout_days/>
- <field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table>
- </log>
- <maxdate>
- <connection/>
- <table/>
- <field/>
- <offset>0.0</offset>
- <maxdiff>0.0</maxdiff>
- </maxdate>
- <size_rowset>10000</size_rowset>
- <sleep_time_empty>50</sleep_time_empty>
- <sleep_time_full>50</sleep_time_full>
- <unique_connections>N</unique_connections>
- <feedback_shown>Y</feedback_shown>
- <feedback_size>50000</feedback_size>
- <using_thread_priorities>Y</using_thread_priorities>
- <shared_objects_file/>
- <capture_step_performance>N</capture_step_performance>
- <step_performance_capturing_delay>1000</step_performance_capturing_delay>
- <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
- <dependencies>
- </dependencies>
- <partitionschemas>
- </partitionschemas>
- <slaveservers>
- </slaveservers>
- <clusterschemas>
- </clusterschemas>
- <created_user>-</created_user>
- <created_date>2013/07/15 18:39:34.442</created_date>
- <modified_user>-</modified_user>
- <modified_date>2013/07/15 18:39:34.442</modified_date>
- </info>
- <notepads>
- </notepads>
- <connection>
- <name>enki_connector_ss</name>
- <server>${ENKI_CONNECTOR_SS.HOST}</server>
- <type>MSSQL</type>
- <access>Native</access>
- <database>${ENKI_CONNECTOR_SS.DATABASE}</database>
- <port>3306</port>
- <username>${ENKI_CONNECTOR_SS.USERNAME}</username>
- <password>${ENKI_CONNECTOR_SS.PASSWORD}</password>
- <servername/>
- <data_tablespace/>
- <index_tablespace/>
- <attributes>
- <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
- <attribute><code>MSSQL_DOUBLE_DECIMAL_SEPARATOR</code><attribute>N</attribute></attribute>
- <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
- <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
- <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
- <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
- </attributes>
- </connection>
- <connection>
- <name>enki_connector_staging</name>
- <server>${ENKI_CONNECTOR_STAGING.HOST}</server>
- <type>H2</type>
- <access>Native</access>
- <database>${ENKI_CONNECTOR_STAGING.DATABASE}</database>
- <port>3306</port>
- <username>${ENKI_CONNECTOR_STAGING.USERNAME}</username>
- <password>${ENKI_CONNECTOR_STAGING.PASSWORD}</password>
- <servername/>
- <data_tablespace/>
- <index_tablespace/>
- <attributes>
- <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
- <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
- <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
- <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
- <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
- </attributes>
- </connection>
- <connection>
- <name>enki_dw</name>
- <server>${ENKI_DW.HOST}</server>
- <type>MYSQL</type>
- <access>Native</access>
- <database>${ENKI_DW.DATABASE}</database>
- <port>3306</port>
- <username>${ENKI_DW.USERNAME}</username>
- <password>${ENKI_DW.PASSWORD}</password>
- <servername/>
- <data_tablespace/>
- <index_tablespace/>
- <attributes>
- <attribute><code>EXTRA_OPTION_MYSQL.characterEncoding</code><attribute>UTF-8</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
- <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
- <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
- <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
- <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
- <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
- </attributes>
- </connection>
- <connection>
- <name>enki_md</name>
- <server>${ENKI_MD.HOST}</server>
- <type>MYSQL</type>
- <access>Native</access>
- <database>${ENKI_MD.DATABASE}</database>
- <port>3306</port>
- <username>${ENKI_MD.USERNAME}</username>
- <password>${ENKI_MD.PASSWORD}</password>
- <servername/>
- <data_tablespace/>
- <index_tablespace/>
- <attributes>
- <attribute><code>EXTRA_OPTION_MYSQL.characterEncoding</code><attribute>UTF-8</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
- <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
- <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
- <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
- <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
- <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
- <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
- </attributes>
- </connection>
- <order>
- <hop> <from>Data Grid</from><to>adres lines</to><enabled>Y</enabled> </hop> <hop> <from>adres lines</from><to>process addresses</to><enabled>Y</enabled> </hop> </order>
- <step>
- <name>Data Grid</name>
- <type>DataGrid</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <fields>
- <field>
- <name>json</name>
- <type>String</type>
- <format/>
- <currency/>
- <decimal/>
- <group/>
- <length>-1</length>
- <precision>-1</precision>
- </field>
- </fields>
- <data>
- <line> <item>{"address":[
- {"AddressId":"1_1","Street":"A Street"},
- {"AddressId":"1_101","Street":"Another Street"},
- {"AddressId":"1_102","Street":"One more street", "Locality":"Buenos Aires"},
- {"AddressId":"1_102","Locality":"New York"}
- ]}
- </item> </line>
- </data>
- <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>118</xloc>
- <yloc>149</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
- <step>
- <name>Error Handling</name>
- <type>Mapping</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <specification_method>rep_name</specification_method>
- <trans_object_id/>
- <trans_name>extract_error_handling</trans_name>
- <filename/>
- <directory_path>/customer_data/sd/common</directory_path>
- <mappings>
- <input>
- <mapping> <input_step/>
- <output_step/>
- <main_path>Y</main_path>
- <rename_on_output>Y</rename_on_output>
- <description/>
- <connector><parent>OwnerId</parent><child>OwnerId</child></connector>
- <connector><parent>RevisionId</parent><child>RevisionId</child></connector>
- <connector><parent>EntityName</parent><child>EntityName</child></connector>
- <connector><parent>RevisionFile</parent><child>RevisionFile</child></connector>
- <connector><parent>InsertUser</parent><child>InsertUser</child></connector>
- <connector><parent>UpdateUser</parent><child>UpdateUser</child></connector>
- <connector><parent>InsertDate</parent><child>InsertDate</child></connector>
- <connector><parent>UpdateDate</parent><child>UpdateDate</child></connector>
- <connector><parent>IsDeleted</parent><child>IsDeleted</child></connector>
- <connector><parent>DeleteDate</parent><child>DeleteDate</child></connector>
- <connector><parent>DeleteUser</parent><child>DeleteUser</child></connector>
- <connector><parent>ErrorNumber</parent><child>ErrorNumber</child></connector>
- <connector><parent>ErrorDescription</parent><child>ErrorDescription</child></connector>
- <connector><parent>ErrorField</parent><child>ErrorField</child></connector>
- <connector><parent>ErrorCode</parent><child>ErrorCode</child></connector>
- <connector><parent>DataRowNum</parent><child>DataRowNum</child></connector>
- <connector><parent>DataRow</parent><child>DataRow</child></connector>
- </mapping> </input>
- <output>
- </output>
- <parameters> <inherit_all_vars>Y</inherit_all_vars>
- </parameters>
- </mappings>
- <allow_multiple_input>N</allow_multiple_input>
- <allow_multiple_output>N</allow_multiple_output>
- <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>742</xloc>
- <yloc>378</yloc>
- <draw>N</draw>
- </GUI>
- </step>
- <step>
- <name>Error handling mapping</name>
- <type>SelectValues</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <fields> <field> <name>OwnerId</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>RevisionId</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>EntityName</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>DataRow</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>RevisionFile</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>DataRowNum</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>InsertUser</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>UpdateUser</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>InsertDate</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>UpdateDate</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>IsDeleted</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>DeleteDate</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>DeleteUser</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>ErrorNumber</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>ErrorDescription</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>ErrorField</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <field> <name>ErrorCode</name>
- <rename/>
- <length>-2</length>
- <precision>-2</precision>
- </field> <select_unspecified>N</select_unspecified>
- </fields> <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>271</xloc>
- <yloc>349</yloc>
- <draw>N</draw>
- </GUI>
- </step>
- <step>
- <name>Get rows from setup</name>
- <type>RowsFromResult</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <fields> <field> <name>OwnerId</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>RevisionId</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>EntityName</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>DataRow</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>RevisionFile</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>DataRowNum</name>
- <type>Integer</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>InsertUser</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>UpdateUser</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>InsertDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>UpdateDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>IsDeleted</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>DeleteDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>DeleteUser</name>
- <type>String</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>RemoteInsertDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>RemoteUpdateDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> <field> <name>RemoteDeleteDate</name>
- <type>Date</type>
- <length>-1</length>
- <precision>-1</precision>
- </field> </fields> <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>175</xloc>
- <yloc>31</yloc>
- <draw>N</draw>
- </GUI>
- </step>
- <step>
- <name>adres lines</name>
- <type>JsonInput</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <include>N</include>
- <include_field/>
- <rownum>N</rownum>
- <addresultfile>N</addresultfile>
- <readurl>N</readurl>
- <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
- <doNotFailIfNoFile>Y</doNotFailIfNoFile>
- <ignoreMissingPath>Y</ignoreMissingPath>
- <rownum_field/>
- <file>
- <name>/home/rsilva/Downloads/test.json</name>
- <filemask/>
- <exclude_filemask/>
- <file_required>N</file_required>
- <include_subfolders>N</include_subfolders>
- </file>
- <fields>
- <field>
- <name>them_addresses</name>
- <path>$.address[*]</path>
- <type>String</type>
- <format/>
- <currency/>
- <decimal/>
- <group/>
- <length>-1</length>
- <precision>-1</precision>
- <trim_type>none</trim_type>
- <repeat>N</repeat>
- </field>
- </fields>
- <limit>0</limit>
- <IsInFields>Y</IsInFields>
- <IsAFile>N</IsAFile>
- <valueField>json</valueField>
- <shortFileFieldName/>
- <pathFieldName/>
- <hiddenFieldName/>
- <lastModificationTimeFieldName/>
- <uriNameFieldName/>
- <rootUriNameFieldName/>
- <extensionFieldName/>
- <sizeFieldName/>
- <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>220</xloc>
- <yloc>150</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
- <step>
- <name>process addresses</name>
- <type>JsonInput</type>
- <description/>
- <distribute>Y</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <include>N</include>
- <include_field/>
- <rownum>N</rownum>
- <addresultfile>N</addresultfile>
- <readurl>N</readurl>
- <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
- <doNotFailIfNoFile>Y</doNotFailIfNoFile>
- <ignoreMissingPath>Y</ignoreMissingPath>
- <rownum_field/>
- <file>
- <name>/home/rsilva/Downloads/test.json</name>
- <filemask/>
- <exclude_filemask/>
- <file_required>N</file_required>
- <include_subfolders>N</include_subfolders>
- </file>
- <fields>
- <field>
- <name>Id</name>
- <path>$.AddressId</path>
- <type>String</type>
- <format/>
- <currency/>
- <decimal/>
- <group/>
- <length>-1</length>
- <precision>-1</precision>
- <trim_type>none</trim_type>
- <repeat>N</repeat>
- </field>
- <field>
- <name>Locality</name>
- <path>$.Locality</path>
- <type>String</type>
- <format/>
- <currency/>
- <decimal/>
- <group/>
- <length>-1</length>
- <precision>-1</precision>
- <trim_type>none</trim_type>
- <repeat>N</repeat>
- </field>
- <field>
- <name>Street</name>
- <path>$.Street</path>
- <type>String</type>
- <format/>
- <currency/>
- <decimal/>
- <group/>
- <length>-1</length>
- <precision>-1</precision>
- <trim_type>none</trim_type>
- <repeat>N</repeat>
- </field>
- </fields>
- <limit>0</limit>
- <IsInFields>Y</IsInFields>
- <IsAFile>N</IsAFile>
- <valueField>them_addresses</valueField>
- <shortFileFieldName/>
- <pathFieldName/>
- <hiddenFieldName/>
- <lastModificationTimeFieldName/>
- <uriNameFieldName/>
- <rootUriNameFieldName/>
- <extensionFieldName/>
- <sizeFieldName/>
- <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>334</xloc>
- <yloc>151</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
- <step>
- <name>Setup</name>
- <type>Mapping</type>
- <description/>
- <distribute>N</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <specification_method>rep_name</specification_method>
- <trans_object_id/>
- <trans_name>extract_setup</trans_name>
- <filename/>
- <directory_path>/customer_data/sd/common</directory_path>
- <mappings>
- <input>
- </input>
- <output>
- <mapping> <input_step/>
- <output_step/>
- <main_path>Y</main_path>
- <rename_on_output>N</rename_on_output>
- <description/>
- <connector><parent>OwnerId</parent><child>OwnerId</child></connector>
- <connector><parent>RevisionId</parent><child>RevisionId</child></connector>
- <connector><parent>EntityName</parent><child>EntityName</child></connector>
- <connector><parent>DataRow</parent><child>DataRow</child></connector>
- <connector><parent>RevisionFile</parent><child>RevisionFile</child></connector>
- <connector><parent>DataRowNum</parent><child>DataRowNum</child></connector>
- <connector><parent>InsertUser</parent><child>InsertUser</child></connector>
- <connector><parent>UpdateUser</parent><child>UpdateUser</child></connector>
- <connector><parent>InsertDate</parent><child>InsertDate</child></connector>
- <connector><parent>UpdateDate</parent><child>UpdateDate</child></connector>
- <connector><parent>IsDeleted</parent><child>IsDeleted</child></connector>
- <connector><parent>DeleteDate</parent><child>DeleteDate</child></connector>
- <connector><parent>DeleteUser</parent><child>DeleteUser</child></connector>
- <connector><parent>RemoteInsertDate</parent><child>RemoteInsertDate</child></connector>
- <connector><parent>RemoteUpdateDate</parent><child>RemoteUpdateDate</child></connector>
- <connector><parent>RemoteDeleteDate</parent><child>RemoteDeleteDate</child></connector>
- </mapping> </output>
- <parameters> <inherit_all_vars>Y</inherit_all_vars>
- </parameters>
- </mappings>
- <allow_multiple_input>N</allow_multiple_input>
- <allow_multiple_output>N</allow_multiple_output>
- <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>231</xloc>
- <yloc>94</yloc>
- <draw>N</draw>
- </GUI>
- </step>
- <step>
- <name>verify ids</name>
- <type>ScriptValueMod</type>
- <description/>
- <distribute>N</distribute>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <compatible>N</compatible>
- <optimizationLevel>9</optimizationLevel>
- <jsScripts> <jsScript> <jsScript_type>0</jsScript_type>
- <jsScript_name>Script 1</jsScript_name>
- <jsScript_script>trans_Status = CONTINUE_TRANSFORMATION;
- for(i=0; i < rowMeta.getFieldNames().length; i++){
- var fieldName = rowMeta.getValueMeta(i).getName();
- if(fieldName!='OwnerId' && fieldName!='RevisionId' && lower(substr(fieldName,fieldName.length()-2))=='id'){
- if(row[i].split("_")[0]!=OwnerId.toString()){
- _step_.putError(getInputRowMeta(), row, 1,
- "Id '"+row[i]+"' does not begin with OwnerId '"+OwnerId+"' value, set to null",
- fieldName,
- "ERROR_INVALID_ID");
- row[i] = null;
- if(lower(fieldName)==lower(EntityName+'Id')){
- trans_Status = SKIP_TRANSFORMATION;
- }
- }
- }
- }
- </jsScript_script>
- </jsScript> </jsScripts> <fields> </fields> <cluster_schema/>
- <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
- <xloc>660</xloc>
- <yloc>74</yloc>
- <draw>N</draw>
- </GUI>
- </step>
- <step_error_handling>
- </step_error_handling>
- <slave-step-copy-partition-distribution>
- </slave-step-copy-partition-distribution>
- <slave_transformation>N</slave_transformation>
- </transformation>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement