Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
workflow:example:loop_list [2020/03/09 17:08] admin |
workflow:example:loop_list [2020/06/12 14:55] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Loop a list~~ | + | ~~Title: Loop a List~~ |
Here's a simple loop example: | Here's a simple loop example: | ||
Line 6: | Line 6: | ||
{{:workflow:example:loop_a_list.png?nolink|}} | {{:workflow:example:loop_a_list.png?nolink|}} | ||
- | 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:admin@cloud.sibvisions.com/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.: | + | 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:admin@cloud.sibvisions.com/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> | <file json> | ||
Line 18: | Line 18: | ||
</file> | </file> | ||
- | 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. | + | 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. |