666 lines
25 KiB
XML
666 lines
25 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>2013/09/28 08:33:45.443</created_date>
|
|
<modified_user>-</modified_user>
|
|
<modified_date>2013/09/28 08:33:45.443</modified_date>
|
|
</info>
|
|
<notepads>
|
|
</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>Y</enabled> </hop> <hop> <from>Select values 2</from><to>Table output</to><enabled>Y</enabled> </hop> <hop> <from>target</from><to>Select values 2</to><enabled>N</enabled> </hop> <hop> <from>Table input 2</from><to>digits</to><enabled>Y</enabled> </hop> <hop> <from>source</from><to>join</to><enabled>Y</enabled> </hop> <hop> <from>digits</from><to>join</to><enabled>Y</enabled> </hop> <hop> <from>Get data from XML</from><to>Filter rows</to><enabled>Y</enabled> </hop> <hop> <from>Filter rows</from><to>Database join 2</to><enabled>Y</enabled> </hop> <hop> <from>Database join 2</from><to>Database join</to><enabled>Y</enabled> </hop> <hop> <from>join</from><to>Stream lookup</to><enabled>Y</enabled> </hop> <hop> <from>Stream lookup</from><to>pad</to><enabled>Y</enabled> </hop> <hop> <from>pad</from><to>target</to><enabled>Y</enabled> </hop> <hop> <from>Database join</from><to>union</to><enabled>Y</enabled> </hop> <hop> <from>union</from><to>Stream lookup</to><enabled>Y</enabled> </hop> </order>
|
|
<step>
|
|
<name>Database join</name>
|
|
<type>DBJoin</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<rowlimit>0</rowlimit>
|
|
<sql>select code as trytoncode from account_account where code like ?</sql>
|
|
<outer_join>N</outer_join>
|
|
<replace_vars>N</replace_vars>
|
|
<parameter>
|
|
<field>
|
|
<name>code</name>
|
|
<type>String</type>
|
|
</field>
|
|
</parameter>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>460</xloc>
|
|
<yloc>406</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Database join 2</name>
|
|
<type>DBJoin</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>4</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>source</connection>
|
|
<rowlimit>0</rowlimit>
|
|
<sql>select code as opencode from account_account where code like ?</sql>
|
|
<outer_join>N</outer_join>
|
|
<replace_vars>N</replace_vars>
|
|
<parameter>
|
|
<field>
|
|
<name>code</name>
|
|
<type>String</type>
|
|
</field>
|
|
</parameter>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>361</xloc>
|
|
<yloc>409</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Filter rows</name>
|
|
<type>FilterRows</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<send_true_to/>
|
|
<send_false_to/>
|
|
<compare>
|
|
<condition>
|
|
<negated>N</negated>
|
|
<leftvalue>name</leftvalue>
|
|
<function>=</function>
|
|
<rightvalue/>
|
|
<value><name>constant</name><type>String</type><text>code</text><length>-1</length><precision>-1</precision><isnull>N</isnull><mask/></value> </condition>
|
|
</compare>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>249</xloc>
|
|
<yloc>410</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Get data from XML</name>
|
|
<type>getXMLData</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>
|
|
<namespaceaware>N</namespaceaware>
|
|
<ignorecomments>N</ignorecomments>
|
|
<readurl>N</readurl>
|
|
<validating>N</validating>
|
|
<usetoken>N</usetoken>
|
|
<IsIgnoreEmptyFile>N</IsIgnoreEmptyFile>
|
|
<doNotFailIfNoFile>Y</doNotFailIfNoFile>
|
|
<rownum_field/>
|
|
<encoding>UTF-8</encoding>
|
|
<file>
|
|
<name>${transformation_path}/account_code_digits/account.xml</name>
|
|
<filemask/>
|
|
<exclude_filemask/>
|
|
<file_required>N</file_required>
|
|
<include_subfolders>N</include_subfolders>
|
|
</file>
|
|
<fields>
|
|
<field>
|
|
<name>code</name>
|
|
<xpath>.</xpath>
|
|
<element_type>node</element_type>
|
|
<result_type>valueof</result_type>
|
|
<type>String</type>
|
|
<format/>
|
|
<currency/>
|
|
<decimal/>
|
|
<group/>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<trim_type>none</trim_type>
|
|
<repeat>N</repeat>
|
|
</field>
|
|
<field>
|
|
<name>name</name>
|
|
<xpath>@name</xpath>
|
|
<element_type>attribut</element_type>
|
|
<result_type>valueof</result_type>
|
|
<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>
|
|
<loopxpath>/tryton/data/record/field</loopxpath>
|
|
<IsInFields>N</IsInFields>
|
|
<IsAFile>N</IsAFile>
|
|
<XmlField/>
|
|
<prunePath/>
|
|
<shortFileFieldName/>
|
|
<pathFieldName/>
|
|
<hiddenFieldName/>
|
|
<lastModificationTimeFieldName/>
|
|
<uriNameFieldName/>
|
|
<rootUriNameFieldName/>
|
|
<extensionFieldName/>
|
|
<sizeFieldName/>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>146</xloc>
|
|
<yloc>411</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Select values 2</name>
|
|
<type>SelectValues</type>
|
|
<description/>
|
|
<distribute>N</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>755</xloc>
|
|
<yloc>173</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>union</from>
|
|
<input_sorted>N</input_sorted>
|
|
<preserve_memory>Y</preserve_memory>
|
|
<sorted_list>N</sorted_list>
|
|
<integer_pair>N</integer_pair>
|
|
<lookup>
|
|
<key>
|
|
<name>code</name>
|
|
<field>opencode</field>
|
|
</key>
|
|
<value>
|
|
<name>trytoncode</name>
|
|
<rename>trytoncode</rename>
|
|
<default/>
|
|
<type>String</type>
|
|
</value>
|
|
</lookup>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>450</xloc>
|
|
<yloc>172</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>116</xloc>
|
|
<yloc>172</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>Table input 2</name>
|
|
<type>TableInput</type>
|
|
<description/>
|
|
<distribute>Y</distribute>
|
|
<copies>1</copies>
|
|
<partitioning>
|
|
<method>none</method>
|
|
<schema_name/>
|
|
</partitioning>
|
|
<connection>target</connection>
|
|
<sql>select value from ir_property where res like 'account.configuration,%' and value not like 'account%'</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>145</xloc>
|
|
<yloc>314</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>853</xloc>
|
|
<yloc>174</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>digits</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>//Script here
|
|
|
|
digits = value.replace(',','');</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>digits</name>
|
|
<rename>digits</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>235</xloc>
|
|
<yloc>316</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>source</main>
|
|
<compare>
|
|
<condition>
|
|
<negated>N</negated>
|
|
<leftvalue>id</leftvalue>
|
|
<function>=</function>
|
|
<rightvalue>id</rightvalue>
|
|
</condition>
|
|
</compare>
|
|
<cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>312</xloc>
|
|
<yloc>173</yloc>
|
|
<draw>Y</draw>
|
|
</GUI>
|
|
</step>
|
|
|
|
<step>
|
|
<name>pad</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
|
|
if (code != '4720000221' && code != '4720000321' && code != '4770000121') {
|
|
code = trytoncode || code;
|
|
}
|
|
if(type != "view"){
|
|
code = rpad(code,'0', digits);
|
|
}</jsScript_script>
|
|
</jsScript> <jsScript> <jsScript_type>-1</jsScript_type>
|
|
<jsScript_name>lpad_Sample</jsScript_name>
|
|
<jsScript_script>// Padds the string to the left with the given character for the specified length
|
|
//
|
|
// Usage:
|
|
// lpad(var,var,var);
|
|
// 1. String - The String to Pad
|
|
// 2. Char - The Char to Pad
|
|
// 3. Number - The Length for the padding
|
|
//
|
|
// 2006-11-15
|
|
//
|
|
var str1= "Hello World!";
|
|
Alert("Input:" + str1);
|
|
Alert("Lpad:" + lpad(str1, "x",20));</jsScript_script>
|
|
</jsScript> </jsScripts> <fields> <field> <name>code</name>
|
|
<rename>code</rename>
|
|
<type>String</type>
|
|
<length>-1</length>
|
|
<precision>-1</precision>
|
|
<replace>Y</replace>
|
|
</field> </fields> <cluster_schema/>
|
|
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
|
<xloc>561</xloc>
|
|
<yloc>173</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>227</xloc>
|
|
<yloc>173</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>670</xloc>
|
|
<yloc>171</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>454</xloc>
|
|
<yloc>297</yloc>
|
|
<draw>Y</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>
|