| <?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-0002-add-result-filenames</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>96</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Add this workflow to result filenames</name> |
| <description/> |
| <type>ADD_RESULT_FILENAMES</type> |
| <attributes/> |
| <arg_from_previous>N</arg_from_previous> |
| <fields> |
| <field> |
| <name>${PROJECT_HOME}/</name> |
| <filemask>main-0002.*.hwf</filemask> |
| </field> |
| </fields> |
| <delete_all_before>N</delete_all_before> |
| <include_subfolders>N</include_subfolders> |
| <parallel>N</parallel> |
| <xloc>336</xloc> |
| <yloc>96</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Check result</name> |
| <description/> |
| <type>EVAL</type> |
| <attributes/> |
| <script> |
| var result = true; |
| var filesList = previous_result.getResultFilesList(); |
| |
| if (filesList.size()!=1) { |
| action.logError("We expected at one result file to be present in the result of the 'Add filenames to result' action"); |
| result=false; |
| } else { |
| |
| var resultFile = filesList.get(0); |
| if (resultFile.getFile()==null) { |
| action.logError("There was a result file added using the 'Add filenames to result' action but its content was null"); |
| result=false; |
| } |
| |
| } |
| |
| result;</script> |
| <parallel>N</parallel> |
| <xloc>560</xloc> |
| <yloc>96</yloc> |
| <attributes_hac/> |
| </action> |
| </actions> |
| <hops> |
| <hop> |
| <from>Start</from> |
| <to>Add this workflow to result filenames</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>Y</unconditional> |
| </hop> |
| <hop> |
| <from>Add this workflow to result filenames</from> |
| <to>Check result</to> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| </hops> |
| <notepads> |
| </notepads> |
| <attributes/> |
| </workflow> |