At the output, the returned result is stored in a variable, and when the mode is activated, the returned object is decomposed into script variables, matching first-level keys and local variable names.
Calling the product layer microservice
:icons:font :hardbreaks: :imagesdir: ../../../assets/images :toc-title: Contents :toc:
Description
Requests the specified method on the specified microservice in the product layer of the current domain. The invocation is made using the platform/services/Invocations collection. :description2: Passes as input either an object with the values of variables, or an object with the specified named arguments, or a parameter specified by the argument. +\
Index |
|
Short name |
|
Script types |
|
Start module |
|
Mode |
Asynchronous |
Icon |
|
Branching type |
Branching |
Limitations
-
If a timeout is triggered, the script stops waiting for a response and passes control to the next component, the executing method does not complete.
Properties
| Specification | Description |
|---|---|
Name: Microservice Code: Visibility condition: no Default: — |
Name of the product layer microservice. |
Name: Method Code: Visibility condition: no Default: — |
The name of the method of the above product layer microservice. |
Name: Method for setting parameters Code: Visibility condition: no Default: |
Switches the mode of setting the starting parameters for the method. Possible values:
When passing values, JSON strings representing objects are available in the code as objects, JSON arrays are available as arrays, strings and numbers by default, dates are available as a string, and unfilled values remain null. |
Name: Arguments
Code: Default: — |
List of passed parameters and their names. |
Name: Custom parameter Code: Visibility condition: yes Default: — |
Allows you to create a method parameter object manually without additional transformations. |
"Name: Decompose by variables Code: Visibility condition: no Default: no |
If enabled, the result is parsed and the values of all first-level keys are placed in existing variables with similar names. |
Name: Timeout, sec Code: Visibility condition: no Default: 5 |
An argument that specifies the method execution timeout in the JS runtime environment. When the timeout expires, the script passes control to the 'Transition, timeout' branch, and the code continues to execute. |
Name: Result into variable Code: Visibility condition: no Default: — |
Variable where the full body of the method execution result is saved. If a method returns an object or an array, its JSON string representation is stored in the variable. |
Name: Error in variable Code: Visibility condition: no Default: — |
Variable where the string with the error code and text is saved. Some expanded errors are saved to the log. |
Name: Transition Code: Visibility condition: no Default: — |
Component to which control is transferred. |
Name: Transition, time Code: Visibility condition: no Default: — |
The component to which control is transferred in case of a timeout. |
Name: Transition, error Code: Visibility condition: no Default: — |
Component to which control is transferred in case of an error. |