|
| 1 | +# Flowable RPA Framework Client |
| 2 | + |
| 3 | +[License: |
| 4 | +](https://github.com/flowable/flowable-external-client-python/blob/main/LICENSE) |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +This is a python module to connect a Flowable installation through an external worker with a RPA framework task. |
| 9 | +This allows to execute an RPA framework task from a business process with BPMN or a case diagram CMMN. |
| 10 | +The application is started with a task definition from RPA framework and connects to an external worker topic. |
| 11 | +When using the RPA framework task in Flowable, it is possible to specify a task name. |
| 12 | +In the task, the specific task specified will be executed and the result will be sent back to the process. |
| 13 | +It is required that the variables in the diagram match exactly the variables inside the RPA framework task. |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +To install the Flowable RPA framework client, execute the following command: |
| 18 | + |
| 19 | +``` |
| 20 | +pip install flowable.rpaframework-client |
| 21 | +``` |
| 22 | + |
| 23 | +## Sample |
| 24 | + |
| 25 | +The following [diagram BPMN](docs/rpaframeworkExample.bpmn) illustrates a basic usage of the RPA framework task: |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +The following example `get-weather-forecast.py` can be used as an RPA framework task: |
| 30 | +``` |
| 31 | +
|
| 32 | +``` |
| 33 | + |
| 34 | +The RPA Framework worker can be started with the following command: |
| 35 | +```sh |
| 36 | +python -m flowable.rpaframework_client --flowable-token <your-token> myTopic myTask.robot |
| 37 | +``` |
| 38 | + |
| 39 | +You can request `<your-token>` at the [Flowable Trial](https://trial.flowable.com/work/) by clicking at the bottom left on your user and go to Settings. |
| 40 | +Once in the settings, choose "Access Token" and press the button "New token". |
| 41 | +After providing name and the validity, the token is generated and can be set. |
| 42 | + |
| 43 | +Once the module is started and a process instance is created, it will automatically execute the RPA framework action and returns the result to Flowable. |
| 44 | +The Python module will keep running until stopped to process potential additional jobs. |
| 45 | + |
| 46 | +## Authentication |
| 47 | + |
| 48 | +Next to the cloud authentication, it's possible to authenticate against other hosts. |
| 49 | +The hostname can be specified with `--flowable-host`. |
| 50 | + |
| 51 | +For the authentication there are two possibilities: |
| 52 | + |
| 53 | +1. Providing a bearer token with the `--flowable-token <token>` attribute. |
| 54 | +2. Providing basic authentication with `--flowable-username <username>` and `--flowable-password <password>` |
0 commit comments