Component Running a script
Description
Provides process or functional branching at the scenario level.
In the case of organizing automatic services, the size of a scenario can be quite large, and the "Run Scenario" component provides an opportunity to split a large scenario into several logical blocks. In this way, one script transfers control to the beginning of another script. In this case, you can set some value to start, which will be accepted by the Start component of the nested script and saved to its local variable. In addition, all variables of the same type that are named the same in the run and run scripts will transfer their values from one to the other without change. This way of launching is called a nested launch.
You can also use the component to launch any service script into a parallel process that does not work with resources dependent on the main script. When starting an asynchronous service script, the initial values of its variables, which match the main script variables by type and name, will be set according to their values.
Index |
|
Short title |
|
Types of scenarios |
|
Starter module |
|
Mode |
Synchronous |
Icon |
![]() |
Branching pattern |
Branching, closing |
Properties
Specification | Description |
---|---|
Title: |
Child script startup mode.
|
Title: |
Method for selecting the script to run.
|
Title: |
Drop-down list with script codes. Contains all available (unhidden) scripts of the same type as the current script contained in the current domain. |
Title: |
Drop-down list with script codes. Contains all available (unhidden) service scripts contained in the current domain. |
Title: |
Argument specifying the code of the script to be run. Can also specify codes of hidden scripts. The master domain may specify |
Title: |
Variable to store the value of the running script ID that can be used to produce interaction. |
Title: |
Enables or disables returning control from a nested script and continuing on the branch further. |
Title: |
Table of initial values for local variables of the running script. Available only if the selected mode is different from "nested with variable merge". Keys - names of variables of the script to be run. If the running script passes control to a nested script, the assignment of values to each of these variables is performed at most once, but may be delayed until the nested script is loaded, which has a variable with the corresponding name. The values set in this way take precedence over the default values within the script being run. |
Title: |
The first parameter for an asynchronous service script. The value is accessed via the |
Title: |
Second parameter for asynchronous service script. The value is accessed through the expression function |
Title: |
Third parameter for asynchronous service script. The value is accessed through the expression function |
Title: |
Fourth parameter for asynchronous service script. The value is accessed through the expression function |
Title: |
Fifth parameter for asynchronous service script. The value is accessed through the expression function |
Title: |
The sixth parameter for the asynchronous service script. The value is accessed through the expression function |
Title: |
Seventh parameter for the asynchronous service script. The value is accessed through the expression function |
Title: |
Eighth parameter for the asynchronous service script. The value is accessed through the expression function |
Title: |
Ninth parameter for the asynchronous service script. The value is accessed through the expression function |
Title: |
Tenth parameter for asynchronous service script. The value is accessed through the expression function |
Title: |
JSON array containing parameters 11, 12, etc. for an asynchronous service script. The value is accessed through the |
Title: |
The sixth parameter for the asynchronous service script. The value is accessed through the expression function |
Title: |
Variable where the value returned from the nested script will be saved, set in the 'Stop' component'. |
Title: |
A component to which control is passed when an asynchronous service script successfully runs, or when control is returned from a nested script. |
Title: |
The component to which control is passed when the script fails to run. The causes may include:
|
See also
-
role svc