Scenario Interaction component
Description
Performs interaction between different instances of script handlers. It can work in one of the following modes: sending a message, receiving a message. In the message receiving mode it is possible to organize a long waiting time for messages to arrive.
The address of the current script handler can be obtained through the expression function getscriptref().
When an asynchronous service script is run by component Script Run, the address (identifier) of the new handler is returned to a variable.
Having the address of a nested script, it can be passed its own address for two-way communication by sending it in a message.
Addresses can also be transferred through the database, through variables of wide scope, through files on disk in network directories, through special storages. Due to the potential for many script instances to run simultaneously, the key in the repository should be the unique identifier of the subject area entity through which the processes communicate with each other.
Index |
|
Short title |
|
Types of scenarios |
|
Starter module |
|
Mode |
Asynchronous |
Icon |
![]() |
Branching pattern |
Branching, interrupting |
Properties
Specification | Description |
---|---|
Title: |
Operation mode
|
Title: |
Argument containing the message recipient ID (active script handler). |
Title: |
Argument containing the message text. |
Title: |
An argument containing the identifier of the sender from whom the message is expected to be received. |
Title: |
Variable to save the text of the received message. |
Title: |
Variable to store the sender process ID. |
Title: |
Variable to store the sender category of the message. |
Title: |
An argument containing the category of the message sender.
|
Title: |
Timeout for waiting for new messages to arrive, in seconds. |
Title: |
The component to which control is passed when the operation is successful. |
Title: |
The component to which control is passed if an error occurs. |
Title: |
The component to which control is passed if there is no active script handler with the specified identifier. |
Title: |
The component to which control is passed when the timeout period for waiting for messages to arrive has expired. |
See also
-
role svc