This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
workflow:example:loop_list [2020/03/09 18:01]
admin created
workflow:example:loop_list [2020/03/09 18:08]
Line 1: Line 1:
 ~~Title: Loop a list~~ ~~Title: Loop a list~~
Line 6: Line 6:
 {{:​workflow:​example:​loop_a_list.png?​nolink|}} {{:​workflow:​example:​loop_a_list.png?​nolink|}}
-The first step deletes all records of a heroes database table.+The first step (Delete Statement) ​deletes all records of a heroes database table. The next step (REST Get) loads a list of Heroes from an example [[https://​admin:​​heroes/​services/​rest/​Heroes/​HeroesWorkScreen/​data/​heroes|REST service]]. The service returns a JSON array of heroes with ID and NAME as attributes, e.g.: 
 +<file json> 
 + ​{"​ID":​1,"​NAME":"​Superman"​},​ 
 + ​{"​ID":​2,"​NAME":"​Batman"​},​ 
 + ​{"​ID":​4,"​NAME":"​Rambo (John)"​},​ 
 + ​{"​ID":​5,"​NAME":"​Captain America"​},​ 
 + ​{"​ID":​6,"​NAME":"​Wolverine (X-Men)"​} 
 +and stores the list in a variable with the name **Heroes**. The Loop List step iterates all **Heroes** and continues as long as there are entries. If all entries were processed, the final step (Client Call) will be executed to reload the client application.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information