You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.5 KiB
91 lines
3.5 KiB
4 years ago
|
####################################
|
||
|
1. Description
|
||
|
####################################
|
||
4 years ago
|
|
||
|
pyOpenRPA Orchestrator is the executable process.
|
||
|
|
||
|
The features of the orchestrator is:
|
||
|
- Centralized/decentralized user control interface (applicable and for business users and for technical users). Web based, support desktop, tablet, phone.
|
||
|
- Automatized robots control (customized algorithms, robots scheduling)
|
||
|
- Source code mega flexibility: Light Orchestrator architecture is good for own customization
|
||
|
|
||
4 years ago
|
************************************
|
||
4 years ago
|
Global settings dict concept
|
||
4 years ago
|
************************************
|
||
4 years ago
|
pyOpenRPA project is complex tool which consist of several executable modules such as Robot, Orchestrator, Studio,
|
||
|
|
||
|
Because of module compexity, we use 1 init arg - inGSettings
|
||
|
inGSettings is a complex dictionary which has all reqired parameters for the module execution.
|
||
|
|
||
|
The description of the GSettings you can find in executable module details.
|
||
|
|
||
4 years ago
|
************************************
|
||
4 years ago
|
Orchestrator how to configure
|
||
4 years ago
|
************************************
|
||
4 years ago
|
|
||
|
|
||
|
To init pyOpenRPA Orchestrator instance use script:
|
||
|
|
||
|
from pyOpenRPA import Orchestrator # Import orchestrator main
|
||
|
gSettings = SettingsTemplate.Create(inModeStr="BASIC") # Create GSettings with basic configuration
|
||
|
Orchestrator.Orchestrator(inGSettings=gSettings) # Call the orchestrator def
|
||
|
|
||
|
gSettings structure
|
||
|
|
||
|
|
||
4 years ago
|
************************************
|
||
4 years ago
|
Orchestrator architecture
|
||
4 years ago
|
************************************
|
||
4 years ago
|
Orchestrator has several source code components:
|
||
|
- User/robot activity consolidated queue single thread (Processor)
|
||
|
- User/robot activity asynchonus many threads (Processor)
|
||
|
- Scheduler single thread (main)
|
||
|
- RDP keep active many thread
|
||
|
- Autocleaner single thread
|
||
|
- GUI keep active single thread
|
||
|
- HTTP web server single thread (create user socket threads)
|
||
|
-
|
||
|
|
||
|
Below you can find more information about all of the component.
|
||
|
|
||
4 years ago
|
***************************
|
||
4 years ago
|
Component Processor
|
||
4 years ago
|
***************************
|
||
4 years ago
|
Sync - Append activity list to consolidated processor queue. Execution goes sequency by the activity list order
|
||
|
|
||
|
Async - Create New thread to execute the activity list
|
||
|
|
||
|
- Activity list
|
||
4 years ago
|
|
||
|
List of the activity item
|
||
4 years ago
|
|
||
|
- Activity item
|
||
4 years ago
|
|
||
4 years ago
|
Activity item is universal mechanism to execute different algorythms from any sources.
|
||
|
The core feature of the Activity is to call python defs with args and kwargs.
|
||
|
If you need to init do some activity you can write some python def, then create Activity item with current def.
|
||
|
ATTENTION: In some cases (such as web transmition), when you can't transmit python def as object you can use symbolic names for python defs. It is apply you to init all of you want from the web UI.
|
||
|
|
||
|
?Why i cant transmit python def from the web
|
||
|
Because the WEB space is not the Python executable space. Interaction between it spaces create by JSON protocol. So, we know than JSON apply int, float, str, bool, None, list, dict - that is all.
|
||
4 years ago
|
|
||
|
.. note::
|
||
|
Example
|
||
|
{
|
||
|
"Def":"DefAliasTest", # def link or def alias (look gSettings["Processor"]["AliasDefDict"])
|
||
|
"ArgList":[1,2,3], # Args list
|
||
|
"ArgDict":{"ttt":1,"222":2,"dsd":3}, # Args dictionary
|
||
|
"ArgGSettings": None # Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
||
|
"ArgLogger": None # Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
||
|
}# Pay attention! Do not left comma symbol after the end of the dict - it can be interpretated like a turple..
|
||
|
|
||
|
|
||
|
**********
|
||
|
References
|
||
|
**********
|
||
|
|
||
|
`Python-sphinx`_
|
||
|
|
||
|
.. target-notes::
|
||
|
.. _`reStructuredText`: http://docutils.sourceforge.net/rst.html
|