The source data looks like the following:
<!-- Energy -->
var dataEnergyOut = r0.002,0.009,0.029,0.056,0.068,0.093,0.131,0.176,0.239,0.322,0.390,0.494,0.558,0.577,0.627,0.637,0.677,0.780,0.860,0.911,1.178,1.241,1.395,1.696,1.789,1.894,2.073,2.317,2.561,2.681,2.771,2.887,3.027,3.099,3.166,3.260,3.333,3.399,3.483,3.519,3.566,3.650,3.726,3.788,3.850,3.912,3.949,3.980,4.010,4.031,4.036,4.037,4.037];
<!-- Power -->
var dataPowerOut = a7,29,80,108,46,101,152,179,255,329,275,415,254,79,200,38,160,412,322,202,1070,249,619,1201,373,419,718,975,977,480,361,464,560,288,266,376,294,263,336,142,189,338,304,245,249,248,148,123,120,87,17,5,0];
<!-- Average -->
var dataPowerAvg = anull,28,80,108,48,100,152,180,252,332,272,416,256,76,200,40,160,412,320,204,1068,252,616,1204,372,420,716,976,976,480,360,464,560,288,268,376,292,264,336,144,188,336,304,248,248,248,148,124,120,84,20,4,0];
Regular expression is being used to extract each of them separately which ends up in having a list that looks like that:
//that's for the data energy out case
0.002,0.009,0.029,0.056,0.068,0.093,0.131,0.176,0.239,0.322,0.390,0.494,0.558,0.577,0.627,0.637,0.677,0.780,0.860,0.911,1.178,1.241,1.395,1.696,1.789,1.894,2.073,2.317,2.561,2.681,2.771,2.887,3.027,3.099,3.166,3.260,3.333,3.399,3.483,3.519,3.566,3.650,3.726,3.788,3.850,3.912,3.949,3.980,4.010,4.031,4.036,4.037,4.037
//that's for the data power out case
7,29,80,108,46,101,152,179,255,329,275,415,254,79,200,38,160,412,322,202,1070,249,619,1201,373,419,718,975,977,480,361,464,560,288,266,376,294,263,336,142,189,338,304,245,249,248,148,123,120,87,17,5,0
//and that's for the power average case
null,28,80,108,48,100,152,180,252,332,272,416,256,76,200,40,160,412,320,204,1068,252,616,1204,372,420,716,976,976,480,360,464,560,288,268,376,292,264,336,144,188,336,304,248,248,248,148,124,120,84,20,4,0
After that, AttributeSplitter transformer is being applied having ',' as the delimiter.
Hence, I obtain each of the variables as a list (of 52 elements in this use case). Afterwards, I would like to insert dataEnergyOutList20], dataPowerOutt0], powerAverageÂ0], etc... in the first row of a specific table (each one of them in their relevant cell) in the database. That's why I thought of a merger or something like that.
What I wanted to avoid is having an insert statement of each elements separately (I didn't try it out though).
I hope I could explain that scenario in a clear enough way.Â