The sequence routine allows you to create automatically incremented IDs, using a tJava component or any components for example tMap, tFixedFlowInput etc.. The code for defining the sequence is: Numeric.sequence("s1",1,1). whenever you use this sequence Next time, it's value will be incremented by 1. For Example: following code will print 1,2,3 in a seperate line: System.out.println(Numeric.sequence("s1",1,1)); System.out.println(Numeric.sequence("s1",1,1)); System.out.println(Numeric.sequence("s1",1,1)); if you want your sequence to be printed from specific number, then use that number at the between, the last interger is for the interval. The following code starts a sequence from 102. Numeric.sequence("s1",102,1).
To get a record from any data source for example from a delimated File containing huge records, you can simply use component tFlowToIterate. This component extract one record at a time, after preforming the required action, next record is fetched and will do the same for rest of the records as: Define the Schema in tFileInputDelimated component, set the variable in tSetGlobalVar component, use this value for the further operations.