|
1 | | -# Robot-Framework V3 |
| 1 | +# RPA - Fritagelse for leverandørmodregning |
2 | 2 |
|
3 | | -This repo is meant to be used as a template for robots made for [OpenOrchestrator](https://github.com/itk-dev-rpa/OpenOrchestrator). |
| 3 | +This robot is used to allow employees without access to SAP to order automated changed to "Leverandørmodregning". |
| 4 | +The robot is activated using an OS2Forms formula which delivers an email. |
4 | 5 |
|
5 | | -## Quick start |
| 6 | +## Output |
6 | 7 |
|
7 | | -1. To use this template simply use this repo as a template (see [Creating a repository from a template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)). |
8 | | -__Don't__ include all branches. |
| 8 | +If a task is invalid an email is sent to the original sender. |
9 | 9 |
|
10 | | -2. Go to `robot_framework/__main__.py` and choose between the linear framework or queue based framework. |
| 10 | +When a task is completed an email is sent to the original sender. |
11 | 11 |
|
12 | | -3. Implement all functions in the files: |
13 | | - * `robot_framework/initialize.py` |
14 | | - * `robot_framework/reset.py` |
15 | | - * `robot_framework/process.py` |
| 12 | +## Arguments |
16 | 13 |
|
17 | | -4. Change `config.py` to your needs. |
| 14 | +The robot expects the following arguments: |
18 | 15 |
|
19 | | -5. Fill out the dependencies in the `pyproject.toml` file with all packages needed by the robot. |
20 | | - |
21 | | -6. Feel free to add more files as needed. Remember that any additional python files must |
22 | | -be located in the folder `robot_framework` or a subfolder of it. |
23 | | - |
24 | | -When the robot is run from OpenOrchestrator the `main.py` file is run which results |
25 | | -in the following: |
26 | | -1. The working directory is changed to where `main.py` is located. |
27 | | -2. A virtual environment is automatically setup with the required packages. |
28 | | -3. The framework is called passing on all arguments needed by [OpenOrchestrator](https://github.com/itk-dev-rpa/OpenOrchestrator). |
29 | | - |
30 | | -## Requirements |
31 | | -Minimum python version 3.10 |
32 | | - |
33 | | -## Flow |
34 | | - |
35 | | -This framework contains two different flows: A linear and a queue based. |
36 | | -You should only ever use one at a time. You choose which one by going into `robot_framework/__main__.py` |
37 | | -and uncommenting the framework you want. They are both disabled by default and an error will be |
38 | | -raised to remind you if you don't choose. |
39 | | - |
40 | | -### Linear Flow |
41 | | - |
42 | | -The linear framework is used when a robot is just going from A to Z without fetching jobs from an |
43 | | -OpenOrchestrator queue. |
44 | | -The flow of the linear framework is sketched up in the following illustration: |
45 | | - |
46 | | - |
47 | | - |
48 | | -### Queue Flow |
49 | | - |
50 | | -The queue framework is used when the robot is doing multiple bite-sized tasks defined in an |
51 | | -OpenOrchestrator queue. |
52 | | -The flow of the queue framework is sketched up in the following illustration: |
53 | | - |
54 | | - |
55 | | - |
56 | | -## Linting and Github Actions |
57 | | - |
58 | | -This template is also setup with flake8 and pylint linting in Github Actions. |
59 | | -This workflow will trigger whenever you push your code to Github. |
60 | | -The workflow is defined under `.github/workflows/Linting.yml`. |
| 16 | +```json |
| 17 | +{ |
| 18 | + "approved_senders": ["az12345", "az98765"] |
| 19 | +} |
| 20 | +``` |
61 | 21 |
|
| 22 | +__approved_senders__: A whitelist of people who are allowed to activate the robot. |
0 commit comments