Use the Shared Session option in the Terminal Emulator
package to pass the exact state of an application to the concurrently occurring
TaskBot logic.
Shared session enables you to reuse actions between TaskBots that
run concurrently, for example, connecting to the same application.
To use shared session, create a hierarchy of TaskBot logic that are
connected by the Shared Session option. As a result, large TaskBot logic are trimmed by removing repetitive commands for connecting
and disconnecting.
Procedure
-
Create a parent bot such as TE_Share_Main that connects to an
application on the Terminal Emulator.
-
Use the Set session variable
action in the TE_Share_Main to assign the current session to a
variable such as
$te_session$
of Terminal Emulator session
type.
-
Create a child bot such as TE_BMIS to perform any actions such as
Get text and Set field.
-
Add a Run Task
action in the TE_Share_Main to call the TE_BMIS.
-
To pass a session variable from the TE_Share_Main to TE_BMIS , select
$te_session$
as an input value in the Set
SessionVariable.
-
In the TE_BMIS , use Shared session tab and insert
$te_session$
as a session variable to obtain data or perform
task.
-
In the main task, add an action to disconnect from the
application.