Data Generator - Number of Records to Generate

I would like to dynamically assign the recordsNumber property of the Data Generator component. Since it is a private variable, I can see no other way to set this than via the constructor.

I want to be able to set the number of records generated after the graph/components are instantiated but prior to the execution of the data generator, ie set from DataRecordTransform init() in a prior phase.

Any ideas? One thought is to extend the DataGenerator class but thought I’d check here first.

Appropriate setter and getter was added into data generator and will be part of next engine release 2.5.