2022.2

Table Of Contents
ThesameappliestoJSONfiles.WhenyouselectanelementinaJSONfileandaddaRepeatstepon
it,theRepeatstepwillautomaticallyloopoverallelementsonthesamelevelintheJSONfile.
Tip: Tobreakoutofaloopandimmediatelyjumptothenexttaskfollowingthecurrentloop,use
anActiontaskandsetitsactiontoBreak out of repeat loop.
Adding a Repeat step
ToaddaRepeatstep:
1. OntheStepspane,selectthestepafterwhichtoinserttheConditionstep.
2. Makesurethatthecursorislocatedwheretheextractionloopmuststart.Bydefaultthecursoris
locatedatthetopofthepageorrecord,butpreviousstepsintheextractionworkflowmayhave
moveditdown.Ifnecessary,addaGotostep(see"Gotostep"below).
GenerallythisstepcanbeskippedwhenthedatasourceisanXMLfileorJSONfile.
3. AddtheRepeatstep:selectdatainthelineorrowwheretheloopmustend,orselectthe
node/element.Theneither:
l
Right-clickonitandselectAdd Repeat.
l
Right-clicktheStepspaneandselectAdd a Step > Add Repeat.
l
SelectSteps > Add Repeat Stepfromthemenu.
4. MaketherequiredsettingsontheSteppropertiespane.See:"Repeatstepproperties"on
page339.
Formoredetailedinstructionsperfiletypesee"Extractingtransactionaldata"onpage235.
Configuring a Repeat step
ForinformationabouthowtoconfiguretheRepeatstep,see"Repeatstepproperties"onpage339.
Howtouseitinanextractionworkflowisexplainedinthetopic:"Extractingtransactionaldata"on
page235.
Gotostep
Althoughinvisible,thereisacursorintheDataViewerthatrepresentsthelocationthattheextraction
workflowwillbeprocessingnextinthecurrentrecord.Inanextractionworkflowthecursorstartsoffat
thetop-leftcornerofeachrecordinthesourcedata.
TheGotostepcanmovethecursortoacertainlocationinthecurrentrecord.Thetargetlocationcan
berelativetothetopoftherecordortothecurrentposition.
WhentheGotostepisusedwithinaRepeatstep,itmovesthecursorineachloopoftheRepeatstep.
Inthiscasethenewlocationhastoberelativetothecurrentposition.
Page 252