Summary
This example is an action that searches for all the companies in Arizona. For each company updates the rating value to 5. Logs the updated company and saves it on the database. In case of an error while updating a company, it will be logged.

Step: Start
Inputs
No configuration is needed.
Outputs
No configuration is needed.
Context
Step: Find companies of Arizona
Inputs
Label | Type | Value | Description |
---|---|---|---|
Companies |
|
|
Searches for all the companies in Arizona. |
Outputs
Name | Type | Description |
---|---|---|
arizonaCompanies |
|
The founded companies are put in the context. |
Context
Step: For Each
Inputs
Label | Type | Value | Description |
---|---|---|---|
arizonaCompanies |
|
|
Iterates the companies. |
Outputs
Name | Type | Description |
---|---|---|
arizonaCompany |
|
Puts the iterated company in the context. |
Context
Step: Update Rating
Inputs
Label | Type | Value | Description |
---|---|---|---|
arizonaCompany |
|
|
The rating of the company is set to 5. |
Outputs
Name | Type | Description |
---|---|---|
updatedCompany |
|
The edited company is put in the context. |
Context
Step: Log success message
Inputs
Label | Type | Value | Description |
---|---|---|---|
Message |
|
|
Logs a message too inform that the company was updated successfully. |
Outputs
No configuration is needed.
Context
Step: Log error message
Inputs
Label | Type | Value | Description |
---|---|---|---|
Message |
|
|
Logs a message too inform that the update of the company faild. |
Outputs
No configuration is needed.
Context
Step: Save Company
Inputs
Label | Type | Value | Description |
---|---|---|---|
updatedCompany |
|
|
The record instance to be saved into the database after applying changes. |
Outputs
Name | Type | Description |
---|---|---|
savedCompany |
|
The saved company is put in the context. |
Context
Step: End
Inputs
Label | Type | Value | Description |
---|---|---|---|
Return result |
|
|
If true it will return the final result of the flow. |
Outputs
No configuration is needed.