| <?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-0006-not-passing-parameters</name> |
| <name_sync_with_filename>Y</name_sync_with_filename> |
| <description/> |
| <extended_description/> |
| <workflow_version/> |
| <created_user>-</created_user> |
| <created_date>2020/12/08 18:20:41.619</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2020/12/08 18:20:41.619</modified_date> |
| <parameters> |
| </parameters> |
| <actions> |
| <action> |
| <name>START</name> |
| <description/> |
| <type>SPECIAL</type> |
| <attributes/> |
| <start>Y</start> |
| <dummy>N</dummy> |
| <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> |
| <nr>0</nr> |
| <xloc>48</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>0006-check-variables.hpl</name> |
| <description/> |
| <type>PIPELINE</type> |
| <attributes/> |
| <filename>${PROJECT_HOME}/0006-check-variables.hpl</filename> |
| <params_from_previous>N</params_from_previous> |
| <exec_per_row>N</exec_per_row> |
| <clear_rows>N</clear_rows> |
| <clear_files>N</clear_files> |
| <set_logfile>N</set_logfile> |
| <logfile/> |
| <logext/> |
| <add_date>N</add_date> |
| <add_time>N</add_time> |
| <loglevel>Basic</loglevel> |
| <set_append_logfile>N</set_append_logfile> |
| <wait_until_finished>Y</wait_until_finished> |
| <follow_abort_remote>N</follow_abort_remote> |
| <create_parent_folder>N</create_parent_folder> |
| <run_configuration>local</run_configuration> |
| <parameters> |
| <pass_all_parameters>N</pass_all_parameters> |
| </parameters> |
| <parallel>N</parallel> |
| <nr>0</nr> |
| <xloc>384</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Set variables</name> |
| <description/> |
| <type>SET_VARIABLES</type> |
| <attributes/> |
| <replacevars>Y</replacevars> |
| <filename/> |
| <file_variable_type>CURRENT_WORKFLOW</file_variable_type> |
| <fields> |
| <field> |
| <variable_name>TEST6_VARIABLE1</variable_name> |
| <variable_value>test6_value1</variable_value> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| <field> |
| <variable_name>TEST6_PARAMETER1</variable_name> |
| <variable_value>test4_parameter1_value</variable_value> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| <field> |
| <variable_name>TEST6_PARAMETER2</variable_name> |
| <variable_value/> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| <field> |
| <variable_name>TEST6_PARAMETER3</variable_name> |
| <variable_value>test4_parameter3_value</variable_value> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| <field> |
| <variable_name>TEST6_PARAMETER4</variable_name> |
| <variable_value/> |
| <variable_type>CURRENT_WORKFLOW</variable_type> |
| </field> |
| </fields> |
| <parallel>N</parallel> |
| <nr>0</nr> |
| <xloc>208</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>0006-check-variables.hwf</name> |
| <description/> |
| <type>WORKFLOW</type> |
| <attributes/> |
| <run_configuration>local</run_configuration> |
| <filename>${PROJECT_HOME}/0006-check-variables.hwf</filename> |
| <params_from_previous>N</params_from_previous> |
| <exec_per_row>N</exec_per_row> |
| <set_logfile>N</set_logfile> |
| <logfile/> |
| <logext/> |
| <add_date>N</add_date> |
| <add_time>N</add_time> |
| <loglevel>Nothing</loglevel> |
| <wait_until_finished>Y</wait_until_finished> |
| <follow_abort_remote>N</follow_abort_remote> |
| <create_parent_folder>N</create_parent_folder> |
| <pass_export>N</pass_export> |
| <run_configuration>local</run_configuration> |
| <parameters> |
| <pass_all_parameters>N</pass_all_parameters> |
| </parameters> |
| <set_append_logfile>N</set_append_logfile> |
| <parallel>N</parallel> |
| <nr>0</nr> |
| <xloc>384</xloc> |
| <yloc>128</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Check pipeline log</name> |
| <description/> |
| <type>EVAL</type> |
| <attributes/> |
| <script> |
| var txt = previous_result.getLogText(); |
| |
| |
| var ok = true; |
| |
| var expectedVariables = [ |
| [ "TEST6_VARIABLE1", "Pipeline Variables.0 - TEST6_VARIABLE1 = >test6_value1<", "test6_value1" ], |
| [ "TEST6_PARAMETER1", "Pipeline Variables.0 - TEST6_PARAMETER1 = ><", "an empty string" ], |
| [ "TEST6_PARAMETER2", "TEST6_PARAMETER2 = >default_test6_parameter2<", "default_test6_parameter2" ] |
| |
| ]; |
| |
| for (var i = 0 ; i<expectedVariables.length ; i++) { |
| var expectedVariable = expectedVariables[i]; |
| if ( !txt.contains(expectedVariable[1])) { |
| ok = false; |
| log.logError("Expected variable '"+expectedVariable[0]+"' to be set to '"+expectedVariable[2]+"' at least once"); |
| } |
| } |
| |
| var expectedValues = [ |
| [ "value1", "Pipeline Variables.0 - value1 = test6_value1", "test6_value1" ], |
| [ "param1", "Pipeline Variables.0 - param1 = ", "an empty string" ], |
| [ "param2", "Pipeline Variables.0 - param2 = default_test6_parameter2", "default_test6_parameter2" ] |
| ]; |
| |
| for (var i = 0 ; i<expectedValues.length ; i++) { |
| var expectedValue = expectedValues[i]; |
| if ( !txt.contains(expectedValue[1])) { |
| ok = false; |
| log.logError("Expected field '"+expectedValue[0]+"' to be set to '"+expectedValue[2]+"'"); |
| } |
| } |
| |
| |
| ok;</script> |
| <parallel>N</parallel> |
| <nr>0</nr> |
| <xloc>544</xloc> |
| <yloc>48</yloc> |
| <attributes_hac/> |
| </action> |
| <action> |
| <name>Check workflow log</name> |
| <description/> |
| <type>EVAL</type> |
| <attributes/> |
| <script> |
| var txt = previous_result.getLogText(); |
| |
| var ok = true; |
| |
| var expectedVariables = [ |
| [ "TEST6_VARIABLE1", "Workflow Variables - TEST6_VARIABLE1 = >test6_value1<", "test6_value1" ], |
| [ "TEST6_PARAMETER3", "Workflow Variables - TEST6_PARAMETER3 = ><", "an empty string" ], |
| [ "TEST6_PARAMETER4", "Workflow Variables - TEST6_PARAMETER4 = >default_test6_parameter4<", "default_test6_parameter4" ] |
| |
| ]; |
| |
| for (var i = 0 ; i<expectedVariables.length ; i++) { |
| var expectedVariable = expectedVariables[i]; |
| if ( !txt.contains(expectedVariable[1])) { |
| ok = false; |
| log.logError("Expected variable '"+expectedVariable[0]+"' to be set to '"+expectedVariable[2]+"' at least once"); |
| } |
| } |
| |
| ok;</script> |
| <parallel>N</parallel> |
| <nr>0</nr> |
| <xloc>544</xloc> |
| <yloc>128</yloc> |
| <attributes_hac/> |
| </action> |
| </actions> |
| <hops> |
| <hop> |
| <from>START</from> |
| <to>Set variables</to> |
| <from_nr>0</from_nr> |
| <to_nr>0</to_nr> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>Y</unconditional> |
| </hop> |
| <hop> |
| <from>Set variables</from> |
| <to>0006-check-variables.hpl</to> |
| <from_nr>0</from_nr> |
| <to_nr>0</to_nr> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>0006-check-variables.hpl</from> |
| <to>Check pipeline log</to> |
| <from_nr>0</from_nr> |
| <to_nr>0</to_nr> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>Check pipeline log</from> |
| <to>0006-check-variables.hwf</to> |
| <from_nr>0</from_nr> |
| <to_nr>0</to_nr> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| <hop> |
| <from>0006-check-variables.hwf</from> |
| <to>Check workflow log</to> |
| <from_nr>0</from_nr> |
| <to_nr>0</to_nr> |
| <enabled>Y</enabled> |
| <evaluation>Y</evaluation> |
| <unconditional>N</unconditional> |
| </hop> |
| </hops> |
| <notepads> |
| </notepads> |
| <attributes/> |
| </workflow> |