2079 lines
66 KiB
XML
2079 lines
66 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<transformation>
|
|
<info>
|
|
<name>account_account</name>
|
|
<description/>
|
|
<extended_description/>
|
|
<trans_version/>
|
|
<trans_type>Normal</trans_type>
|
|
<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>2012/12/22 11:21:53.267</created_date>
|
|
<modified_user>-</modified_user>
|
|
<modified_date>2012/12/22 11:21:53.267</modified_date>
|
|
</info>
|
|
<notepads>
|
|
<notepad>
|
|
<note>TODO: map user_type => type</note>
|
|
<xloc>250</xloc>
|
|
<yloc>392</yloc>
|
|
<width>191</width>
|
|
<heigth>26</heigth>
|
|
<fontname>Arial</fontname>
|
|
<fontsize>10</fontsize>
|
|
<fontbold>N</fontbold>
|
|
<fontitalic>N</fontitalic>
|
|
<fontcolorred>0</fontcolorred>
|
|
<fontcolorgreen>0</fontcolorgreen>
|
|
<fontcolorblue>0</fontcolorblue>
|
|
<backgroundcolorred>255</backgroundcolorred>
|
|
<backgroundcolorgreen>165</backgroundcolorgreen>
|
|
<backgroundcolorblue>0</backgroundcolorblue>
|
|
<bordercolorred>100</bordercolorred>
|
|
<bordercolorgreen>100</bordercolorgreen>
|
|
<bordercolorblue>100</bordercolorblue>
|
|
<drawshadow>Y</drawshadow>
|
|
</notepad>
|
|
</notepads>
|
|
<connection>
|
|
<name>source</name>
|
|
<server>${source_host}</server>
|
|
<type>POSTGRESQL</type>
|
|
<access>Native</access>
|
|
<database>${source}</database>
|
|
<port>${source_port}</port>
|
|
<username>${source_user}</username>
|
|
<password>${source_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>${source_port}</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>target</name>
|
|
<server>${target_host}</server>
|
|
<type>POSTGRESQL</type>
|
|
<access>Native</access>
|
|
<database>${target}</database>
|
|
<port>${target_port}</port>
|
|
<username>${target_user}</username>
|
|
<password>${target_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>${target_port}</attribute></attribute>
|
|
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
|
|
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute>
|
|
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
|
|
</attributes>
|
|
</connection>
|
|
<order>
|
|
<hop> <from>Table input</from><to>source</to><enabled>N</enabled> </hop> <hop> <from>create_uid</from><to>write_uid</to><enabled>Y</enabled> </hop> <hop> <from>write_uid</from><to>target_account</to><enabled>Y</enabled> </hop> <hop> <from>account_id</from><to>wait</to><enabled>Y</enabled> </hop> <hop> <from>source</from><to>rename_id</to><enabled>Y</enabled> </hop> <hop> <from>account_id</from><to>prep2</to><enabled>Y</enabled> </hop> <hop> <from>prep</from><to>union</to><enabled>Y</enabled> </hop> <hop> <from>prep2</from><to>union</to><enabled>Y</enabled> </hop> <hop> <from>union</from><to>mapping</to><enabled>Y</enabled> </hop> <hop> <from>target</from><to>Select values 2</to><enabled>N</enabled> </hop> <hop> <from>Tax Map</from><to>create_uid</to><enabled>Y</enabled> </hop> <hop> <from>target_account</from><to>exist</to><enabled>Y</enabled> </hop> <hop> <from>exist</from><to>account_id</to><enabled>Y</enabled> </hop> <hop> <from>exist</from><to>copy</to><enabled>Y</enabled> </hop> <hop> <from>copy</from><to>prep</to><enabled>Y</enabled> </hop> <hop> <from>copy</from><to>Update fields</to><enabled>Y</enabled> </hop> <hop> <from>Select values 2</from><to>Table output</to><enabled>N</enabled> </hop> <hop> <from>Database join 3</from><to>Set field value</to><enabled>Y</enabled> </hop> <hop> <from>Filter rows 2</from><to>Database join 3</to><enabled>Y</enabled> </hop> <hop> <from>Filter rows 2</from><to>Value Mapper</to><enabled>Y</enabled> </hop> <hop> <from>Select values 4</from><to>Select values 3</to><enabled>Y</enabled> </hop> <hop> <from>Set field value</from><to>Select values 4</to><enabled>Y</enabled> </hop> <hop> <from>Select values 3 2</from><to>Select values 3</to><enabled>Y</enabled> </hop> <hop> <from>parent</from><to>parent_4</to><enabled>Y</enabled> </hop> <hop> <from>parent_1</from><to>get_parent</to><enabled>Y</enabled> </hop> <hop> <from>parent_2</from><to>parent_1</to><enabled>Y</enabled> </hop> <hop> <from>parent_3</from><to>parent_2</to><enabled>Y</enabled> </hop> <hop> <from>parent_4</from><to>parent_3</to><enabled>Y</enabled> </hop> <hop> <from>wait</from><to>parent</to><enabled>Y</enabled> </hop> <hop> <from>get_parent</from><to>get_parent 2</to><enabled>Y</enabled> </hop> <hop> <from>rename_id</from><to>join</to><enabled>Y</enabled> </hop> <hop> <from>join</from><to>Tax Map</to><enabled>Y</enabled> </hop> <hop> <from>get digits</from><to>join</to><enabled>Y</enabled> </hop> <hop> <from>Database lookup</from><to>Add constants 2</to><enabled>Y</enabled> </hop> <hop> <from>Add constants 2</from><to>Filter rows 2</to><enabled>Y</enabled> </hop> <hop> <from>Select values 3</from><to>Unique rows</to><enabled>Y</enabled> </hop> <hop> <from>Unique rows</from><to>target</to><enabled>Y</enabled> </hop> <hop> <from>Add constants</from><to>Select values 3 2</to><enabled>Y</enabled> </hop> <hop> <from>prep 2</from><to>Add constants</to><enabled>Y</enabled> </hop> <hop> <from>copy</from><to>Unique rows 2</to><enabled>Y</enabled> </hop> <hop> <from>Unique rows 2</from><to>Add constants 3</to><enabled>Y</enabled> </hop> <hop> <from>Add constants 3</from><to>default_type</to><enabled>Y</enabled> </hop> <hop> <from>Value Mapper</from><to>Stream lookup</to><enabled>Y</enabled> </hop> <hop> <from>Stream lookup</from><to>prep 2</to><enabled>Y</enabled> </hop> <hop> <from>default_type</from><to>Stream lookup</to><enabled>Y</enabled> </hop> <hop> <from>get_parent 2</from><to>sibling</to><enabled>Y</enabled> </hop> <hop> <from>sibling</from><to>Database lookup</to><enabled>Y</enabled> </hop> <hop> <from>Unique rows</from><to>Dummy (do nothing)</to><enabled>Y</enabled> </hop> <hop> <from>Dummy (do nothing)</from><to>code lookup</to><enabled>Y</enabled> </hop> <hop> <from>code lookup</from><to>Stream lookup 2</to><enabled>Y</enabled> </hop> <hop> <from>Stream lookup 2</from><to>Update mapping</to><enabled>Y</enabled> </hop> <hop> <from>mapping</from><to>Stream lookup 2</to><enabled>Y</enabled> </hop> <hop> <from>Stream lookup 2</from><to>duplicated_output</to><enabled>Y</enabled> </hop> </order>
|
|
<step>
|
|
<name>Add constants</name>
|
|
<type>Constant</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields>
|
|
<field>
|
|
<name>deferral</name>
|
|
<type>Boolean</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>True</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1284</xloc>
|
|
<yloc>171</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Add constants 2</name>
|
|
<type>Constant</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields>
|
|
<field>
|
|
<name>left</name>
|
|
<type>Integer</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>0</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
<field>
|
|
<name>right</name>
|
|
<type>Integer</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>0</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>938</xloc>
|
|
<yloc>266</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Add constants 3</name>
|
|
<type>Constant</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields>
|
|
<field>
|
|
<name>type_name</name>
|
|
<type>String</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>Migration Type</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
<field>
|
|
<name>type_display_balance</name>
|
|
<type>String</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>debit-credit</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
<field>
|
|
<name>income_statement</name>
|
|
<type>Boolean</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif>False</nullif>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>908</xloc>
|
|
<yloc>12</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Database join 3</name>
|
|
<type>DBJoin</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<rowlimit>0</rowlimit>
|
|
<sql>SELECT
|
|
kind,
|
|
type AS sibling_type,
|
|
reconcile AS sibling_reconcile,
|
|
deferral
|
|
FROM
|
|
account_account
|
|
WHERE
|
|
id = ?</sql>
|
|
<outer_join>N</outer_join>
|
|
<replace_vars>N</replace_vars>
|
|
<parameter>
|
|
<field>
|
|
<name>sibling_id</name>
|
|
<type>-</type>
|
|
</field>
|
|
</parameter>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1129</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Database lookup</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>N</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>sibling_code</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>sibling_id</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>839</xloc>
|
|
<yloc>264</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Dummy (do nothing)</name>
|
|
<type>Dummy</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1292</xloc>
|
|
<yloc>359</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Filter rows 2</name>
|
|
<type>FilterRows</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<send_true_to>Database join 3</send_true_to>
|
|
<send_false_to>Value Mapper</send_false_to>
|
|
<compare>
|
|
<condition>
|
|
<negated>N</negated>
|
|
<leftvalue>sibling_id</leftvalue>
|
|
<function>IS NOT NULL</function>
|
|
<rightvalue/>
|
|
</condition>
|
|
</compare>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1027</xloc>
|
|
<yloc>266</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Select values 2</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <field> <name>left</name>
|
|
<rename>left</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>right</name>
|
|
<rename>right</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>create_uid</name>
|
|
<rename>create_uid</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>create_date</name>
|
|
<rename>create_date</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>write_date</name>
|
|
<rename>write_date</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>write_uid</name>
|
|
<rename>write_uid</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>code</name>
|
|
<rename>code</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>reconcile</name>
|
|
<rename>reconcile</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>currency_id</name>
|
|
<rename>second_currency</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>kind</name>
|
|
<rename>kind</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>active</name>
|
|
<rename>active</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>name</name>
|
|
<rename>name</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>company</name>
|
|
<rename>company</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>note</name>
|
|
<rename>note</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>parent_id</name>
|
|
<rename>parent</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>type</name>
|
|
<rename>type</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>id</name>
|
|
<rename>id</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <select_unspecified>N</select_unspecified>
|
|
</fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1404</xloc>
|
|
<yloc>498</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Select values 3</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <select_unspecified>N</select_unspecified>
|
|
<remove> <name>create_uid</name>
|
|
</remove> <remove> <name>write_uid</name>
|
|
</remove> <meta> <name>account_id</name>
|
|
<rename>id</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>create_uid_target</name>
|
|
<rename>create_uid</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>write_uid_target</name>
|
|
<rename>write_uid</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>company_id</name>
|
|
<rename>company</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>parent_id</name>
|
|
<rename>parent</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>target_type</name>
|
|
<rename>type</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1405</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Select values 3 2</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <select_unspecified>N</select_unspecified>
|
|
<remove> <name>sibling_code</name>
|
|
</remove> <remove> <name>sibling_id</name>
|
|
</remove> <remove> <name>type</name>
|
|
</remove> <remove> <name>default_account_type</name>
|
|
</remove> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1403</xloc>
|
|
<yloc>171</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Select values 4</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <select_unspecified>N</select_unspecified>
|
|
<remove> <name>sibling_code</name>
|
|
</remove> <remove> <name>sibling_id</name>
|
|
</remove> <remove> <name>sibling_reconcile</name>
|
|
</remove> <remove> <name>type</name>
|
|
</remove> <meta> <name>sibling_type</name>
|
|
<rename>target_type</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1307</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Set field value</name>
|
|
<type>SetValueField</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields>
|
|
<field>
|
|
<name>reconcile</name>
|
|
<replaceby>sibling_reconcile</replaceby>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1218</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Stream lookup</name>
|
|
<type>StreamLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<from>default_type</from>
|
|
<input_sorted>N</input_sorted>
|
|
<preserve_memory>Y</preserve_memory>
|
|
<sorted_list>N</sorted_list>
|
|
<integer_pair>N</integer_pair>
|
|
<lookup>
|
|
<key>
|
|
<name>company_id</name>
|
|
<field>company_id</field>
|
|
</key>
|
|
<value>
|
|
<name>default_account_type</name>
|
|
<rename>default_account_type</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1108</xloc>
|
|
<yloc>170</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Stream lookup 2</name>
|
|
<type>StreamLookup</type>
|
|
<description/>
|
|
<distribute>N</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<from>mapping</from>
|
|
<input_sorted>N</input_sorted>
|
|
<preserve_memory>Y</preserve_memory>
|
|
<sorted_list>N</sorted_list>
|
|
<integer_pair>N</integer_pair>
|
|
<lookup>
|
|
<key>
|
|
<name>openerp_id</name>
|
|
<field>source</field>
|
|
</key>
|
|
<value>
|
|
<name>target</name>
|
|
<rename>new_target</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1039</xloc>
|
|
<yloc>359</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Table input</name>
|
|
<type>TableInput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>source</connection>
|
|
<sql>SELECT * FROM account_account where code in ('4720000221', '4720000321','4770000121');</sql>
|
|
<limit>0</limit>
|
|
<lookup/>
|
|
<execute_each_row>N</execute_each_row>
|
|
<variables_active>N</variables_active>
|
|
<lazy_conversion_active>N</lazy_conversion_active>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>29</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Table output</name>
|
|
<type>TableOutput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<schema/>
|
|
<table>account_account</table>
|
|
<commit>1000</commit>
|
|
<truncate>N</truncate>
|
|
<ignore_errors>N</ignore_errors>
|
|
<use_batch>N</use_batch>
|
|
<specify_fields>N</specify_fields>
|
|
<partitioning_enabled>N</partitioning_enabled>
|
|
<partitioning_field/>
|
|
<partitioning_daily>N</partitioning_daily>
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
|
<tablename_in_field>N</tablename_in_field>
|
|
<tablename_field/>
|
|
<tablename_in_table>Y</tablename_in_table>
|
|
<return_keys>N</return_keys>
|
|
<return_field/>
|
|
<fields>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1404</xloc>
|
|
<yloc>580</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Tax Map</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>//Script here
|
|
|
|
var code = source_code;
|
|
if (source_code.length > 4) {
|
|
var start = substr(source_code,0,4);
|
|
if (start == '4720' || start == '4721' || start == '4770' || start == '4771' || start == '4730' || start == '4751'){
|
|
var digit = substr(source_code,4,2);
|
|
if(digit!='00')
|
|
code = rpad(substr(source_code,0,4),'0', source_code.length-3) + digit;
|
|
}
|
|
}</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>code</name>
|
|
<rename>code</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>277</xloc>
|
|
<yloc>264</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Unique rows</name>
|
|
<type>UniqueRowsByHashSet</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<store_values>N</store_values>
|
|
<reject_duplicate_row>Y</reject_duplicate_row>
|
|
<error_description/>
|
|
<fields> <field> <name>company</name>
|
|
</field> <field> <name>code</name>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1407</xloc>
|
|
<yloc>345</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Unique rows 2</name>
|
|
<type>UniqueRowsByHashSet</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<store_values>N</store_values>
|
|
<reject_duplicate_row>N</reject_duplicate_row>
|
|
<error_description/>
|
|
<fields> <field> <name>company_id</name>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>776</xloc>
|
|
<yloc>15</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Update fields</name>
|
|
<type>Update</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<skip_lookup>N</skip_lookup>
|
|
<commit>100</commit>
|
|
<use_batch>N</use_batch>
|
|
<error_ignored>N</error_ignored>
|
|
<ignore_flag_field/>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<key>
|
|
<name>target_account_id</name>
|
|
<field>id</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>reconcile</name>
|
|
<rename>reconcile</rename>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>385</xloc>
|
|
<yloc>99</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Update mapping</name>
|
|
<type>Update</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<skip_lookup>N</skip_lookup>
|
|
<commit>100</commit>
|
|
<use_batch>N</use_batch>
|
|
<error_ignored>N</error_ignored>
|
|
<ignore_flag_field/>
|
|
<lookup>
|
|
<schema>migration</schema>
|
|
<table>account_account_mapping</table>
|
|
<key>
|
|
<name>openerp_id</name>
|
|
<field>source</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>target</name>
|
|
<rename>new_target</rename>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>865</xloc>
|
|
<yloc>359</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Value Mapper</name>
|
|
<type>ValueMapper</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<field_to_use>type</field_to_use>
|
|
<target_field>kind</target_field>
|
|
<non_match_default>other</non_match_default>
|
|
<fields>
|
|
<field>
|
|
<source_value>payable</source_value>
|
|
<target_value>payable</target_value>
|
|
</field>
|
|
<field>
|
|
<source_value>other</source_value>
|
|
<target_value>other</target_value>
|
|
</field>
|
|
<field>
|
|
<source_value>view</source_value>
|
|
<target_value>view</target_value>
|
|
</field>
|
|
<field>
|
|
<source_value>receivable</source_value>
|
|
<target_value>receivable</target_value>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1022</xloc>
|
|
<yloc>170</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>account_id</name>
|
|
<type>Sequence</type>
|
|
<description/>
|
|
<distribute>N</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<valuename>account_id</valuename>
|
|
<use_database>Y</use_database>
|
|
<connection>target</connection>
|
|
<schema/>
|
|
<seqname>account_account_id_seq</seqname>
|
|
<use_counter>N</use_counter>
|
|
<counter_name/>
|
|
<start_at>1</start_at>
|
|
<increment_by>1</increment_by>
|
|
<max_value>999999999</max_value>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>610</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>code lookup</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>source</connection>
|
|
<cache>N</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema/>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>Y</eat_row_on_failure>
|
|
<key>
|
|
<name>source_code</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<key>
|
|
<name>openerp_id</name>
|
|
<field>id</field>
|
|
<condition><></condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>new_source_id</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1177</xloc>
|
|
<yloc>359</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>copy</name>
|
|
<type>Dummy</type>
|
|
<description/>
|
|
<distribute>N</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>486</xloc>
|
|
<yloc>100</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>create_uid</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>Y</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>migration</schema>
|
|
<table>user_mapping</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>create_uid</name>
|
|
<field>source</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>target</name>
|
|
<rename>create_uid_target</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>338</xloc>
|
|
<yloc>266</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>default_type</name>
|
|
<type>TableOutput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<schema/>
|
|
<table>account_account_type</table>
|
|
<commit>1000</commit>
|
|
<truncate>N</truncate>
|
|
<ignore_errors>N</ignore_errors>
|
|
<use_batch>N</use_batch>
|
|
<specify_fields>Y</specify_fields>
|
|
<partitioning_enabled>N</partitioning_enabled>
|
|
<partitioning_field/>
|
|
<partitioning_daily>N</partitioning_daily>
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
|
<tablename_in_field>N</tablename_in_field>
|
|
<tablename_field/>
|
|
<tablename_in_table>Y</tablename_in_table>
|
|
<return_keys>Y</return_keys>
|
|
<return_field>default_account_type</return_field>
|
|
<fields>
|
|
<field>
|
|
<column_name>income_statement</column_name>
|
|
<stream_name>income_statement</stream_name>
|
|
</field>
|
|
<field>
|
|
<column_name>display_balance</column_name>
|
|
<stream_name>type_display_balance</stream_name>
|
|
</field>
|
|
<field>
|
|
<column_name>name</column_name>
|
|
<stream_name>type_name</stream_name>
|
|
</field>
|
|
<field>
|
|
<column_name>company</column_name>
|
|
<stream_name>company_id</stream_name>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1098</xloc>
|
|
<yloc>14</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>exist</name>
|
|
<type>FilterRows</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<send_true_to>copy</send_true_to>
|
|
<send_false_to>account_id</send_false_to>
|
|
<compare>
|
|
<condition>
|
|
<negated>N</negated>
|
|
<leftvalue>target_account_id</leftvalue>
|
|
<function>IS NOT NULL</function>
|
|
<rightvalue/>
|
|
</condition>
|
|
</compare>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>543</xloc>
|
|
<yloc>264</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>get digits</name>
|
|
<type>TableInput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>source</connection>
|
|
<sql>select max(length(code)) as code_digits from account_account;</sql>
|
|
<limit>0100</limit>
|
|
<lookup/>
|
|
<execute_each_row>N</execute_each_row>
|
|
<variables_active>N</variables_active>
|
|
<lazy_conversion_active>N</lazy_conversion_active>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>225</xloc>
|
|
<yloc>176</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>get_parent</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>var parent_id = parent_id4 || parent_id3 || parent_id2 || parent_id1;
|
|
var parent_type = parent_type4 || parent_type3 || parent_type2 || parent_type1;
|
|
</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>parent_id</name>
|
|
<rename>parent_id</rename>
|
|
<type>Integer</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> <field> <name>parent_type</name>
|
|
<rename>parent_type</rename>
|
|
<type>Integer</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>779</xloc>
|
|
<yloc>457</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>get_parent 2</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>if (target_parent_id4) {
|
|
var parent_id = target_parent_id4;
|
|
}
|
|
</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>parent_id</name>
|
|
<rename>parent_id</rename>
|
|
<type>Integer</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>Y</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>779</xloc>
|
|
<yloc>377</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>join</name>
|
|
<type>JoinRows</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<directory>%%java.io.tmpdir%%</directory>
|
|
<prefix>out</prefix>
|
|
<cache_size>500</cache_size>
|
|
<main>get digits</main>
|
|
<compare>
|
|
<condition>
|
|
<negated>N</negated>
|
|
<leftvalue>code_digits</leftvalue>
|
|
<function>=</function>
|
|
<rightvalue>code_digits</rightvalue>
|
|
</condition>
|
|
</compare>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>226</xloc>
|
|
<yloc>264</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>mapping</name>
|
|
<type>TableOutput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<schema>migration</schema>
|
|
<table>account_account_mapping</table>
|
|
<commit>1000</commit>
|
|
<truncate>N</truncate>
|
|
<ignore_errors>N</ignore_errors>
|
|
<use_batch>N</use_batch>
|
|
<specify_fields>N</specify_fields>
|
|
<partitioning_enabled>N</partitioning_enabled>
|
|
<partitioning_field/>
|
|
<partitioning_daily>N</partitioning_daily>
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
|
<tablename_in_field>N</tablename_in_field>
|
|
<tablename_field/>
|
|
<tablename_in_table>Y</tablename_in_table>
|
|
<return_keys>N</return_keys>
|
|
<return_field>target_id</return_field>
|
|
<fields>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>754</xloc>
|
|
<yloc>98</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>parent</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>//Script here
|
|
|
|
pare4=trim(rpad(substr(code,0,code.length-3),"0",code_digits-2));
|
|
pare3=trim(substr(code,0,4))
|
|
pare2=trim(substr(code,0,3))
|
|
pare1=trim(substr(code,0,2))
|
|
|
|
</jsScript_script>
|
|
</jsScript> <jsScript> <jsScript_type>-1</jsScript_type>
|
|
<jsScript_name>substr_Sample</jsScript_name>
|
|
<jsScript_script>// Perform the substring function
|
|
//
|
|
// Usage:
|
|
// substr(var, from);
|
|
// substr(var, from, to);
|
|
//
|
|
// 2007-01-25
|
|
//
|
|
var str1= "Hello Pentaho!";
|
|
var str2= substr(str1, 6);
|
|
var str3= substr(str1, 6, 7);
|
|
Alert("Input : " + str1);
|
|
Alert("From position 6: " + str2);
|
|
Alert("From position 6 for 7 long : " + str3);
|
|
</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>pare4</name>
|
|
<rename>pare4</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> <field> <name>pare3</name>
|
|
<rename>pare3</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> <field> <name>pare2</name>
|
|
<rename>pare2</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> <field> <name>pare1</name>
|
|
<rename>pare1</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>624</xloc>
|
|
<yloc>380</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>parent_1</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>pare1</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<key>
|
|
<name>company_id</name>
|
|
<field>company</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>parent_id1</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
<value>
|
|
<name>type</name>
|
|
<rename>parent_type1</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>779</xloc>
|
|
<yloc>535</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>parent_2</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>pare2</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<key>
|
|
<name>company_id</name>
|
|
<field>company</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>parent_id2</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
<value>
|
|
<name>type</name>
|
|
<rename>parent_type2</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>697</xloc>
|
|
<yloc>535</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>parent_3</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>pare3</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<key>
|
|
<name>company_id</name>
|
|
<field>company</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>parent_id3</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
<value>
|
|
<name>type</name>
|
|
<rename>parent_type3</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>624</xloc>
|
|
<yloc>535</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>parent_4</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>N</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>public</schema>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>pare4</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<key>
|
|
<name>company_id</name>
|
|
<field>company</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>parent_id4</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
<value>
|
|
<name>parent</name>
|
|
<rename>target_parent_id4</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
<value>
|
|
<name>type</name>
|
|
<rename>parent_type4</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>624</xloc>
|
|
<yloc>460</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>prep</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <field> <name>openerp_id</name>
|
|
<rename>source</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>target_account_id</name>
|
|
<rename>target</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <select_unspecified>N</select_unspecified>
|
|
</fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>571</xloc>
|
|
<yloc>99</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>prep 2</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>//Script here
|
|
var target_type = parent_type != null ? parent_type : default_account_type;</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>target_type</name>
|
|
<rename>target_type</rename>
|
|
<type>Integer</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1182</xloc>
|
|
<yloc>169</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>prep2</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <field> <name>openerp_id</name>
|
|
<rename>source</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <field> <name>account_id</name>
|
|
<rename>target</rename>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
</field> <select_unspecified>N</select_unspecified>
|
|
</fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>645</xloc>
|
|
<yloc>178</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>rename_id</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<fields> <select_unspecified>N</select_unspecified>
|
|
<meta> <name>id</name>
|
|
<rename>openerp_id</rename>
|
|
<type>Integer</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> <meta> <name>code</name>
|
|
<rename>source_code</rename>
|
|
<type>String</type>
|
|
<length>-2</length>
|
|
<precision>-2</precision>
|
|
<conversion_mask/>
|
|
<date_format_lenient>false</date_format_lenient>
|
|
<encoding/>
|
|
<decimal_symbol/>
|
|
<grouping_symbol/>
|
|
<currency_symbol/>
|
|
<storage_type/>
|
|
</meta> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>169</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>sibling</name>
|
|
<type>ScriptValueMod</type>
|
|
<description/>
|
|
<distribute>Y</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>//Script here
|
|
var sibling_code = trim(rpad(substr(code,0,3),"0",code_digits));</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>sibling_code</name>
|
|
<rename>sibling_code</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>N</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>763</xloc>
|
|
<yloc>264</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>source</name>
|
|
<type>Dummy</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>100</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>target</name>
|
|
<type>Dummy</type>
|
|
<description/>
|
|
<distribute>N</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>1404</xloc>
|
|
<yloc>418</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>target_account</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>N</cache>
|
|
<cache_load_all>Y</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema/>
|
|
<table>account_account</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>code</name>
|
|
<field>code</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>id</name>
|
|
<rename>target_account_id</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>471</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>union</name>
|
|
<type>Dummy</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>642</xloc>
|
|
<yloc>98</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>wait</name>
|
|
<type>BlockUntilStepsFinish</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<steps>
|
|
<step>
|
|
<name>mapping</name>
|
|
<CopyNr>0</CopyNr>
|
|
</step>
|
|
</steps>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>688</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>write_uid</name>
|
|
<type>DBLookup</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<cache>Y</cache>
|
|
<cache_load_all>Y</cache_load_all>
|
|
<cache_size>0</cache_size>
|
|
<lookup>
|
|
<schema>migration</schema>
|
|
<table>user_mapping</table>
|
|
<orderby/>
|
|
<fail_on_multiple>N</fail_on_multiple>
|
|
<eat_row_on_failure>N</eat_row_on_failure>
|
|
<key>
|
|
<name>write_uid</name>
|
|
<field>source</field>
|
|
<condition>=</condition>
|
|
<name2/>
|
|
</key>
|
|
<value>
|
|
<name>target</name>
|
|
<rename>write_uid_target</rename>
|
|
<default/>
|
|
<type>Integer</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>397</xloc>
|
|
<yloc>265</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>duplicated_output</name>
|
|
<type>TextFileOutput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<separator>;</separator>
|
|
<enclosure>"</enclosure>
|
|
<enclosure_forced>N</enclosure_forced>
|
|
<enclosure_fix_disabled>N</enclosure_fix_disabled>
|
|
<header>Y</header>
|
|
<footer>N</footer>
|
|
<format>DOS</format>
|
|
<compression>None</compression>
|
|
<encoding/>
|
|
<endedLine/>
|
|
<fileNameInField>N</fileNameInField>
|
|
<fileNameField/>
|
|
<create_parent_folder>Y</create_parent_folder>
|
|
<file>
|
|
<name>/tmp/duplicated_accounts.csv</name>
|
|
<is_command>N</is_command>
|
|
<servlet_output>N</servlet_output>
|
|
<do_not_open_new_file_init>N</do_not_open_new_file_init>
|
|
<extention>txt</extention>
|
|
<append>N</append>
|
|
<split>N</split>
|
|
<haspartno>N</haspartno>
|
|
<add_date>N</add_date>
|
|
<add_time>N</add_time>
|
|
<SpecifyFormat>N</SpecifyFormat>
|
|
<date_time_format/>
|
|
<add_to_result_filenames>Y</add_to_result_filenames>
|
|
<pad>N</pad>
|
|
<fast_dump>N</fast_dump>
|
|
<splitevery>0</splitevery>
|
|
</file>
|
|
<fields>
|
|
<field>
|
|
<name>openerp_id</name>
|
|
<type>Integer</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif/>
|
|
<trim_type>none</trim_type>
|
|
<length>9</length>
|
|
<precision>0</precision>
|
|
</field>
|
|
<field>
|
|
<name>new_target</name>
|
|
<type>Integer</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif/>
|
|
<trim_type>none</trim_type>
|
|
<length>9</length>
|
|
<precision>0</precision>
|
|
</field>
|
|
<field>
|
|
<name>source_code</name>
|
|
<type>String</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif/>
|
|
<trim_type>none</trim_type>
|
|
<length>64</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
<field>
|
|
<name>code</name>
|
|
<type>String</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<nullif/>
|
|
<trim_type>none</trim_type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
</field>
|
|
</fields>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>954</xloc>
|
|
<yloc>410</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step_error_handling>
|
|
<error>
|
|
<source_step>Unique rows</source_step>
|
|
<target_step>Dummy (do nothing)</target_step>
|
|
<is_enabled>Y</is_enabled>
|
|
<nr_valuename/>
|
|
<descriptions_valuename/>
|
|
<fields_valuename/>
|
|
<codes_valuename/>
|
|
<max_errors/>
|
|
<max_pct_errors/>
|
|
<min_pct_rows/>
|
|
</error>
|
|
</step_error_handling>
|
|
<slave-step-copy-partition-distribution>
|
|
</slave-step-copy-partition-distribution>
|
|
<slave_transformation>N</slave_transformation>
|
|
</transformation>
|