blob: cef4aed434d6954ec5bcf4e25410850f1f1344de [file] [log] [blame]
<?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-partitioned-when-stream-lookup-should-fail</name>
<name_sync_with_filename>Y</name_sync_with_filename>
<description/>
<extended_description/>
<workflow_version/>
<workflow_status>0</workflow_status>
<created_user>-</created_user>
<created_date>2020/12/08 22:48:28.325</created_date>
<modified_user>-</modified_user>
<modified_date>2020/12/08 22:48:28.325</modified_date>
<parameters>
<parameter>
<name>NR_PARTITIONS</name>
<default_value/>
<description/>
</parameter>
</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>80</yloc>
<attributes_hac/>
</action>
<action>
<name>0006-partitioned-when-stream-lookup-should-fail.hpl</name>
<description/>
<type>PIPELINE</type>
<attributes/>
<filename>${PROJECT_HOME}/0006-partitioned-when-stream-lookup-should-fail.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>Y</pass_all_parameters>
<parameter>
<name>NR_PARTITIONS</name>
<stream_name/>
<value>3</value>
</parameter>
</parameters>
<parallel>N</parallel>
<xloc>336</xloc>
<yloc>80</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 expectedValues = [
"When reading from info transforms and running partitioned the source transform needs to be partitioned in the same way",
"ERROR",
];
for (var i = 0 ; i&lt;expectedValues.length ; i++) {
var expectedValue = expectedValues[i];
if ( !txt.contains(expectedValue)) {
ok = false;
log.logError("Value logged as '"+expectedValue+"' was not logged at least once");
}
}
ok;</script>
<parallel>N</parallel>
<xloc>576</xloc>
<yloc>80</yloc>
<attributes_hac/>
</action>
<action>
<name>Fail</name>
<description/>
<type>ABORT</type>
<attributes/>
<message>This pipeline should fail</message>
<parallel>N</parallel>
<xloc>576</xloc>
<yloc>176</yloc>
<attributes_hac/>
</action>
<action>
<name>0006-partitioned-when-stream-lookup-should-fail2.hpl</name>
<description/>
<type>PIPELINE</type>
<attributes/>
<filename>${PROJECT_HOME}/0006-partitioned-when-stream-lookup-should-fail2.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>Y</pass_all_parameters>
<parameter>
<name>NR_PARTITIONS</name>
<stream_name/>
<value>3</value>
</parameter>
</parameters>
<parallel>N</parallel>
<xloc>816</xloc>
<yloc>80</yloc>
<attributes_hac/>
</action>
<action>
<name>Check pipeline log 2</name>
<description/>
<type>EVAL</type>
<attributes/>
<script>
var txt = previous_result.getLogText();
var ok = true;
var expectedValues = [
"Insert a Dummy transform to resolve this situation",
"ERROR",
];
for (var i = 0 ; i&lt;expectedValues.length ; i++) {
var expectedValue = expectedValues[i];
if ( !txt.contains(expectedValue)) {
ok = false;
log.logError("Value logged as '"+expectedValue+"' was not logged at least once");
}
}
ok;</script>
<parallel>N</parallel>
<xloc>1056</xloc>
<yloc>80</yloc>
<attributes_hac/>
</action>
<action>
<name>Fail 2</name>
<description/>
<type>ABORT</type>
<attributes/>
<message>This pipeline should fail</message>
<parallel>N</parallel>
<xloc>1056</xloc>
<yloc>176</yloc>
<attributes_hac/>
</action>
</actions>
<hops>
<hop>
<from>START</from>
<to>0006-partitioned-when-stream-lookup-should-fail.hpl</to>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
<hop>
<from>0006-partitioned-when-stream-lookup-should-fail.hpl</from>
<to>Check pipeline log</to>
<enabled>Y</enabled>
<evaluation>N</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>0006-partitioned-when-stream-lookup-should-fail.hpl</from>
<to>Fail</to>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>0006-partitioned-when-stream-lookup-should-fail2.hpl</from>
<to>Check pipeline log 2</to>
<enabled>Y</enabled>
<evaluation>N</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>Check pipeline log</from>
<to>0006-partitioned-when-stream-lookup-should-fail2.hpl</to>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>0006-partitioned-when-stream-lookup-should-fail2.hpl</from>
<to>Fail 2</to>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
</hops>
<notepads>
</notepads>
<attributes/>
</workflow>