To develop an algorithm, the 'electroNeek DevTool' program should be opened. The 'electroNeek Agent' program is run automatically while 'electroNeek DevTool' is opening. The 'electroNeek Agent' tool is used to execute the algorithm developed by the user.
From this point on short names of 'DevTool' and 'Agent' will be used to refer to 'electroNeek DevTool' and 'electroNeek Agent' accordingly.
The picture below shows the interface of the 'DevTool' application.
The numbers on the picture represent the following:
A group of buttons to save, open, or create a new file with an algorithm.
A block with functions, grouped by the function they automate.
A button to launch the algorithm. When the algorithm is running, the stop button will be displayed nearby.
A path to the opened algorithm (if a user creates a new algorithm and doesn't save it then the 'New file' phrase will be shown as on the picture above).
Left-to-right: the current account information, the platform logo (the documentation is opened after clicking the logo).
The selected function's properties: its description and parameters
A block with variables where all variables initialized in the current algorithm are shown.
A console where messages about the robot status are shown.
The workspace where functions can be added and connected.
The so-called 'Visual programming' is used to create an algorithm. A user adds functions to the workspace which are shown as blocks. Each block contains parameters to set according to the business process.
If a user created a variable inside the 'Execute js code' then outside this block that variable will not be accessible.
To add a block to the workspace, a user needs to double-click the corresponding name from the left panel or drag and drop the block directly to the workspace.
Clicking on the block will activate the 'Block properties' tab where the parameters are displayed and can be set. All required parameters are marked with a red star. Each block has the 'Comment' field. This allows to give a description to the block's function so it will be easier to understand the role of the function in the process.
If a block is highlighted with green, then all the required parameters are set. If the block is highlighted with yellow, then some of the required parameters are not set.
Each block contains at least two ports (ways to follow the algorithm). The branch coming out of the green port corresponds to successful execution of the current block. The branch coming out of the red 'Error' port is used when an exception has occurred during execution of the current block. Logical blocks contain three ports: 'Yes', 'No' and 'Error'.
Blocks can be moved, copied or deleted. It is possible to select multiple blocks holding the 'Ctrl' button and making a left-click on the desired blocks. Multiple blocks can be moved, deleted, copied, and pasted simultaneously.
While developing an algorithm, it is recommended to stick to the following practices:
Split one large program into small subprograms based on the logic and goals of the process. This will help to see the algorithm's structure better, understand its idea easier, and make changes faster.
Try making an algorithm neat and readable. Delete all blocks that were used to debug and have no practical value. Comment blocks and make use of the 'TODO' function. This is useful if several developers are working on the project as descriptive comments will help to understand the code better and faster.
Give readable names to variables and subprograms that clearly reflect its purpose. There are some widely used notations (as shown in the table below) and it is recommended to stick to a single standard.