| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <workflow> |
| <name>main-0003-copy-files</name> |
| <name_sync_with_filename>Y</name_sync_with_filename> |
| <description/> |
| <extended_description/> |
| <workflow_version/> |
| <created_user>-</created_user> |
| <created_date>2021/05/05 18:31:44.849</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2021/05/05 18:31:44.849</modified_date> |
| <parameters> |
| </parameters> |
| <actions> |
| <action> |
| <name>Start</name> |
| <description/> |
| <type>SPECIAL</type> |
| <attributes/> |
| <repeat>N</repeat> |
| <schedulerType>0</schedulerType> |
| <intervalSeconds>0</intervalSeconds> |
| <intervalMinutes>60</intervalMinutes> |
| <hour>12</hour> |
| <minutes>0</minutes> |
| <weekDay>1</weekDay> |
| <DayOfMonth>1</DayOfMonth> |
| <parallel>N</parallel> |
| <xloc>128</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>SOURCE_FILE, TARGET_FOLDER</name> |
| <description/> |
| <type>SET_VARIABLES</type> |
| <attributes/> |
| <replacevars>Y</replacevars> |
| <filename/> |
| <file_variable_type>JVM</file_variable_type> |
| <fields> |
| <field> |
| <variable_name>SOURCE_FILE</variable_name> |
| <variable_value>${PROJECT_HOME}/hop-config.json</variable_value> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| <field> |
| <variable_name>TARGET_FOLDER</variable_name> |
| <variable_value>${java.io.tmpdir}/copy-files-action/</variable_value> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>352</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>copy file to /tmp/copy-files-action/one</name> |
| <description/> |
| <type>COPY_FILES</type> |
| <attributes/> |
| <copy_empty_folders>Y</copy_empty_folders> |
| <arg_from_previous>N</arg_from_previous> |
| <overwrite_files>N</overwrite_files> |
| <include_subfolders>N</include_subfolders> |
| <remove_source_files>N</remove_source_files> |
| <add_result_filesname>N</add_result_filesname> |
| <destination_is_a_file>N</destination_is_a_file> |
| <create_destination_folder>Y</create_destination_folder> |
| <fields> |
| <field> |
| <source_filefolder>EMPTY_SOURCE_URL-0-${SOURCE_FILE}</source_filefolder> |
| <source_configuration_name>STATIC-SOURCE-FILE-0</source_configuration_name> |
| <destination_filefolder>EMPTY_DEST_URL-0-${TARGET_FOLDER}/one/</destination_filefolder> |
| <destination_configuration_name>LOCAL-DEST-FILE-0</destination_configuration_name> |
| <wildcard/> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>352</xloc> |
| <yloc>160</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>copy file to /tmp/copy-files-action/two</name> |
| <description/> |
| <type>COPY_FILES</type> |
| <attributes/> |
| <copy_empty_folders>Y</copy_empty_folders> |
| <arg_from_previous>N</arg_from_previous> |
| <overwrite_files>N</overwrite_files> |
| <include_subfolders>N</include_subfolders> |
| <remove_source_files>Y</remove_source_files> |
| <add_result_filesname>N</add_result_filesname> |
| <destination_is_a_file>N</destination_is_a_file> |
| <create_destination_folder>Y</create_destination_folder> |
| <fields> |
| <field> |
| <source_filefolder>EMPTY_SOURCE_URL-0-${TARGET_FOLDER}/one</source_filefolder> |
| <source_configuration_name>LOCAL-SOURCE-FILE-0</source_configuration_name> |
| <destination_filefolder>EMPTY_DEST_URL-0-${TARGET_FOLDER}/two/</destination_filefolder> |
| <destination_configuration_name>LOCAL-DEST-FILE-0</destination_configuration_name> |
| <wildcard>.*</wildcard> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>352</xloc> |
| <yloc>304</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>check one/ file</name> |
| <description/> |
| <type>FILES_EXIST</type> |
| <attributes/> |
| <filename/> |
| <fields> |
| <field> |
| <name>${TARGET_FOLDER}/one/hop-config.json</name> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>624</xloc> |
| <yloc>160</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>check two/ file</name> |
| <description/> |
| <type>FILES_EXIST</type> |
| <attributes/> |
| <filename/> |
| <fields> |
| <field> |
| <name>${TARGET_FOLDER}/two/hop-config.json</name> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>624</xloc> |
| <yloc>304</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>check one/ file removed</name> |
| <description/> |
| <type>FILES_EXIST</type> |
| <attributes/> |
| <filename/> |
| <fields> |
| <field> |
| <name>${TARGET_FOLDER}/one/hop-config.json</name> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>832</xloc> |
| <yloc>304</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Success</name> |
| <description/> |
| <type>SUCCESS</type> |
| <attributes/> |
| <parallel>N</parallel> |
| <xloc>1024</xloc> |
| <yloc>304</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>cleanup target folder</name> |
| <description/> |
| <type>DELETE_FILES</type> |
| <attributes/> |
| <arg_from_previous>N</arg_from_previous> |
| <include_subfolders>Y</include_subfolders> |
| <fields> |
| <field> |
| <name>${TARGET_FOLDER}</name> |
| <filemask>.*</filemask> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>576</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>replace file in /tmp/copy-files-action/three</name> |
| <description/> |
| <type>COPY_FILES</type> |
| <attributes/> |
| <copy_empty_folders>N</copy_empty_folders> |
| <arg_from_previous>N</arg_from_previous> |
| <overwrite_files>Y</overwrite_files> |
| <include_subfolders>N</include_subfolders> |
| <remove_source_files>N</remove_source_files> |
| <add_result_filesname>N</add_result_filesname> |
| <destination_is_a_file>N</destination_is_a_file> |
| <create_destination_folder>Y</create_destination_folder> |
| <fields> |
| <field> |
| <source_filefolder>EMPTY_SOURCE_URL-0-${SOURCE_FILE}</source_filefolder> |
| <source_configuration_name>LOCAL-SOURCE-FILE-0</source_configuration_name> |
| <destination_filefolder>EMPTY_DEST_URL-0-${TARGET_FOLDER}/three/</destination_filefolder> |
| <destination_configuration_name>LOCAL-DEST-FILE-0</destination_configuration_name> |
| <wildcard/> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <xloc>624</xloc> |
| <yloc>448</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>create empty three/ file</name> |
| <description/> |
| <type>CREATE_FILE</type> |
| <attributes/> |
| <filename>${TARGET_FOLDER}/three/hop-config.json</filename> |
| <fail_if_file_exists>Y</fail_if_file_exists> |
| <add_filename_result>N</add_filename_result> |
| <parallel>N</parallel> |
| <xloc>352</xloc> |
| <yloc>448</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Compare file with three/</name> |
| <description/> |
| <type>FILE_COMPARE</type> |
| <attributes/> |
| <filename1>${SOURCE_FILE}</filename1> |
| <filename2>${TARGET_FOLDER}/three/hop-config.json</filename2> |
| <add_filename_result>N</add_filename_result> |
| <parallel>N</parallel> |
| <xloc>880</xloc> |
| <yloc>448</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>File not copied</name> |
| <description/> |
| <type>ABORT</type> |
| <attributes/> |
| <message>File was not copied to target folder one/</message> |
| <parallel>N</parallel> |
| <xloc>832</xloc> |
| <yloc>160</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>File not moved</name> |
| <description/> |
| <type>ABORT</type> |
| <attributes/> |
| <message>File was not moved to target folder two/</message> |
| <parallel>N</parallel> |
| <xloc>1024</xloc> |
| <yloc>224</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>File not replaced</name> |
| <description/> |
| <type>ABORT</type> |
| <attributes/> |
| <message>File was not replaced in target folder three/</message> |
| <parallel>N</parallel> |
| <xloc>1056</xloc> |
| <yloc>448</yloc> |
| <attributes_hac/> |
| </action> |
| </actions> |
| <hops> |
| <hop> |
| <from>Start</from> |
| <to>SOURCE_FILE, TARGET_FOLDER</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>Y</unconditional> |
| </hop> |
| <hop> |
| <from>copy file to /tmp/copy-files-action/one</from> |
| <to>check one/ file</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>check one/ file</from> |
| <to>copy file to /tmp/copy-files-action/two</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>copy file to /tmp/copy-files-action/two</from> |
| <to>check two/ file</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>check two/ file</from> |
| <to>check one/ file removed</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>check one/ file removed</from> |
| <to>Success</to> |
| <enabled>Y</enabled> |
| <evaluation>N</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>SOURCE_FILE, TARGET_FOLDER</from> |
| <to>cleanup target folder</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>cleanup target folder</from> |
| <to>copy file to /tmp/copy-files-action/one</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>Success</from> |
| <to>create empty three/ file</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>create empty three/ file</from> |
| <to>replace file in /tmp/copy-files-action/three</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>replace file in /tmp/copy-files-action/three</from> |
| <to>Compare file with three/</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>check one/ file</from> |
| <to>File not copied</to> |
| <enabled>Y</enabled> |
| <evaluation>N</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>check one/ file removed</from> |
| <to>File not moved</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>Compare file with three/</from> |
| <to>File not replaced</to> |
| <enabled>Y</enabled> |
| <evaluation>N</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| </hops> |
| <notepads> |
| <notepad> |
| <note>Move from one/ to two/</note> |
| <xloc>80</xloc> |
| <yloc>288</yloc> |
| <width>126</width> |
| <heigth>24</heigth> |
| <fontname>Inter</fontname> |
| <fontsize>11</fontsize> |
| <fontbold>N</fontbold> |
| <fontitalic>N</fontitalic> |
| <fontcolorred>14</fontcolorred> |
| <fontcolorgreen>58</fontcolorgreen> |
| <fontcolorblue>90</fontcolorblue> |
| <backgroundcolorred>201</backgroundcolorred> |
| <backgroundcolorgreen>232</backgroundcolorgreen> |
| <backgroundcolorblue>251</backgroundcolorblue> |
| <bordercolorred>14</bordercolorred> |
| <bordercolorgreen>58</bordercolorgreen> |
| <bordercolorblue>90</bordercolorblue> |
| </notepad> |
| <notepad> |
| <note>copy file to one/</note> |
| <xloc>80</xloc> |
| <yloc>176</yloc> |
| <width>91</width> |
| <heigth>24</heigth> |
| <fontname>Inter</fontname> |
| <fontsize>11</fontsize> |
| <fontbold>N</fontbold> |
| <fontitalic>N</fontitalic> |
| <fontcolorred>14</fontcolorred> |
| <fontcolorgreen>58</fontcolorgreen> |
| <fontcolorblue>90</fontcolorblue> |
| <backgroundcolorred>201</backgroundcolorred> |
| <backgroundcolorgreen>232</backgroundcolorgreen> |
| <backgroundcolorblue>251</backgroundcolorblue> |
| <bordercolorred>14</bordercolorred> |
| <bordercolorgreen>58</bordercolorgreen> |
| <bordercolorblue>90</bordercolorblue> |
| </notepad> |
| </notepads> |
| <attributes/> |
| </workflow> |