Interview Question
Qus: What is the difference between a loop and a repeat?
Answers (1)
1) For Loop we need to give the input as document. for repeat we need to give the input as number
2) Along with above answer, ideally loop will exit by default after completing all iterations corresponding to no.of documents in document list.
repeat will exit onfaiulre/sucess condition
3) Loop and Repeat both are used to execute child steps.
Repeat : Repeat is a conditional based flow step. The execution of child steps will be depends on "REPEAT ON" value( SUCESS / FAILURE in property panel).
Loop : You should perform a loop operation on array of items(String list/Document list/Object list). Loop operation process each and every array element in the array. you have to give the input array value.