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).
Comments
Post a Comment