99 lines
2.6 KiB
Text
99 lines
2.6 KiB
Text
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<pipeline>
|
||
|
|
<info>
|
||
|
|
<name>deputy_flags</name>
|
||
|
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
||
|
|
<description/>
|
||
|
|
<extended_description/>
|
||
|
|
<pipeline_version/>
|
||
|
|
<pipeline_type>Normal</pipeline_type>
|
||
|
|
<parameters>
|
||
|
|
</parameters>
|
||
|
|
<capture_transform_performance>N</capture_transform_performance>
|
||
|
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
||
|
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
||
|
|
<created_user>-</created_user>
|
||
|
|
<created_date>2025/04/25 13:15:05.259</created_date>
|
||
|
|
<modified_user>-</modified_user>
|
||
|
|
<modified_date>2025/04/25 13:15:05.259</modified_date>
|
||
|
|
</info>
|
||
|
|
<notepads>
|
||
|
|
</notepads>
|
||
|
|
<order>
|
||
|
|
<hop>
|
||
|
|
<from>deputy_input</from>
|
||
|
|
<to>Update_deputy_flag</to>
|
||
|
|
<enabled>Y</enabled>
|
||
|
|
</hop>
|
||
|
|
</order>
|
||
|
|
<transform>
|
||
|
|
<name>Update_deputy_flag</name>
|
||
|
|
<type>Update</type>
|
||
|
|
<description/>
|
||
|
|
<distribute>Y</distribute>
|
||
|
|
<custom_distribution/>
|
||
|
|
<copies>1</copies>
|
||
|
|
<partitioning>
|
||
|
|
<method>none</method>
|
||
|
|
<schema_name/>
|
||
|
|
</partitioning>
|
||
|
|
<commit>1000</commit>
|
||
|
|
<connection>ervu-dashboard</connection>
|
||
|
|
<error_ignored>Y</error_ignored>
|
||
|
|
<lookup>
|
||
|
|
<key>
|
||
|
|
<condition>=</condition>
|
||
|
|
<field>recruit_id</field>
|
||
|
|
<name>recruit_id</name>
|
||
|
|
</key>
|
||
|
|
<schema>ervu_dashboard</schema>
|
||
|
|
<table>citizen</table>
|
||
|
|
<value>
|
||
|
|
<name>is_deputy</name>
|
||
|
|
<rename>is_deputy</rename>
|
||
|
|
</value>
|
||
|
|
<value>
|
||
|
|
<name>is_deputy_candidate</name>
|
||
|
|
<rename>is_deputy_candidate</rename>
|
||
|
|
</value>
|
||
|
|
</lookup>
|
||
|
|
<skip_lookup>N</skip_lookup>
|
||
|
|
<use_batch>Y</use_batch>
|
||
|
|
<attributes/>
|
||
|
|
<GUI>
|
||
|
|
<xloc>560</xloc>
|
||
|
|
<yloc>240</yloc>
|
||
|
|
</GUI>
|
||
|
|
</transform>
|
||
|
|
<transform>
|
||
|
|
<name>deputy_input</name>
|
||
|
|
<type>TableInput</type>
|
||
|
|
<description/>
|
||
|
|
<distribute>Y</distribute>
|
||
|
|
<custom_distribution/>
|
||
|
|
<copies>1</copies>
|
||
|
|
<partitioning>
|
||
|
|
<method>none</method>
|
||
|
|
<schema_name/>
|
||
|
|
</partitioning>
|
||
|
|
<connection>ervu-dashboard</connection>
|
||
|
|
<execute_each_row>N</execute_each_row>
|
||
|
|
<limit>0</limit>
|
||
|
|
<sql>
|
||
|
|
SELECT
|
||
|
|
recruit_id,
|
||
|
|
COALESCE(deputy.deputy, false) AS is_deputy,
|
||
|
|
NOT COALESCE(deputy.deputy, false) AS is_deputy_candidate
|
||
|
|
FROM deputy;</sql>
|
||
|
|
<variables_active>N</variables_active>
|
||
|
|
<attributes/>
|
||
|
|
<GUI>
|
||
|
|
<xloc>384</xloc>
|
||
|
|
<yloc>240</yloc>
|
||
|
|
</GUI>
|
||
|
|
</transform>
|
||
|
|
<transform_error_handling>
|
||
|
|
</transform_error_handling>
|
||
|
|
<attributes/>
|
||
|
|
</pipeline>
|