Class extends DataRecordTransform

Hello,
I try to do something and I think it’s not really able to do it.
I wanted to do in the finished() method to send a last data, can I do this ?

like :


public void finished() {
SetVal.setString(target[0],"field1","hello");
super.finished();
}

I try and nothing goes to the output.

Hi,
it could work:


	    Node reformat = (Node)getGraph().getNodes().get("reformatId");
	    DataRecord record = new DataRecord(targetMetadata[0]);
	    record.init();
	    SetVal.setString(record,"field1","hello"); 
	    try {
			reformat.getOutputPort(0).writeRecord(record);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

Agata

Thank you very much