Icon

05_​Modified Variables Propagation in GET Request Captured in Try Catch

Modified Variables Propagation in GET Request Captured in Try Catch

The workflow sends a GET request inside of a Try & Catch construction. The flow variable totalItems containing the total number of books available on Google Books for all search terms is created inside the Try & Catch construction. For the case when the GET Request fails, a Custom message flow variable is created in the alternative branch.
With propagating the variables option, either totalItems or the Custom message flow variable is exported by the Try&Catch construction, depending on which branch was active.

This workflow uses Google Books API to get the number of books available in the Google Books repository for the provided search terms.
Main branch is active
Alternative branch is active
Create Custom message flow variable
Variable Creator
Provide a list of URLs with search terms with spaces > error
Table Creator
Return the initial table with the totalItems flow variable
Catch Errors (Data Ports)
Inject Variables (Data)
Inject Variables (Data)
Inject Variables (Data)
Return the initial table with the CustomMessage flow variable
Catch Errors (Data Ports)
Try (Data Ports)
Create totalItems flow variable
Get the total number of items available on Google Books
Provide a list of URLs with search terms
Table Creator
Try (Data Ports)
Create totalItems flow variable
Get the total number of items available on Google Books
Inject Variables (Data)
Create Custom message flow variable
Variable Creator

Nodes

Extensions

Links