split.connectDataInput(query.getDataOutput());
ReplaceWithValue replace = new ReplaceWithValue();
replace.connectValuesInput(mean.getDataOutput());
replace.connectDataInput(split.getTrueOutput());
replace.addColumns(new int[]{0});
TupleUnionAll union = new TupleUnionAll();
union.setNumberOfInputs(2);
union.connectDataInput(0, split.getFalseOutput());
union.connectDataInput(1, replace.getDataOutput());
TupleToWebRowSetCharArrays webrowset = new TupleToWebRowSetCharArrays();
webrowset.connectDataInput(union.getDataOutput());
DeliverToRequestStatus deliver = new DeliverToRequestStatus();
deliver.connectInput(webrowset.getResultOutput());
PipelineWorkflow workflow = new PipelineWorkflow();
workflow.add(query);
workflow.add(mean);