How to pass parameters to a transform class

In extending a DataRecordTransform class , how may I pass in parameters - for example I would like to pass in the keyfield and input file to a LookupTable transform.

May I add attributes to a NODE - then how do I access them?

thanks

gary

Hello,
you can access node parameters in init method of your DataRecordTransform class, eg.:

	String my_value;

	public boolean init(Properties parameters,
			DataRecordMetadata[] sourceRecordsMetadata,
			DataRecordMetadata[] targetRecordsMetadata)
			throws ComponentNotReadyException {
		my_value = parameters.getProperty("my_property");
		return super.init(parameters, sourceRecordsMetadata, targetRecordsMetadata);
	}

The property must be defined in your node:

<Node id="REFORMAT0" transformURL="${TRANS_DIR}/test.java" type="REFORMAT" my_property="my_value">