Skip to content

Commit 0f4a60d

Browse files
authored
rename module to rpaframework (#2)
rename module to rpaframework
1 parent 5e9f9cd commit 0f4a60d

27 files changed

+859
-184
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
working-directory: ./external-worker/
2626
- run: python -m unittest discover
2727
working-directory: ./external-worker/
28-
test-robocorp-client:
28+
test-rpa-framework-client:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: ["3.12.0"]
32+
python-version: ["3.11.0"]
3333

3434
steps:
3535
- uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
- run: python setup.py install
4747
working-directory: ./external-worker/
4848
- run: pip install -e ".[testing]"
49-
working-directory: ./robocorp/
50-
- run: cp -a external-worker/flowable/external_worker_client robocorp/flowable/ # we need to copy this module over, since it's only searching locally for modules
49+
working-directory: ./rpaframework/
50+
- run: cp -a external-worker/flowable/external_worker_client rpaframework/flowable/ # we need to copy this module over, since it's only searching locally for modules
5151
- run: python -m unittest discover
52-
working-directory: ./robocorp/
52+
working-directory: ./rpaframework/

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
packages-dir: external-worker/dist/
3232
verbose: true
3333

34-
build-robocorp-client:
34+
build-rpa-framework-client:
3535
runs-on: ubuntu-latest
3636
environment: release
3737
permissions:
@@ -49,11 +49,11 @@ jobs:
4949
- run: source venv/bin/activate
5050
- run: pip install setuptools
5151
- run: python setup.py sdist
52-
working-directory: ./robocorp/
52+
working-directory: ./rpaframework/
5353
- run: pip wheel --no-deps . -w dist
54-
working-directory: ./robocorp/
54+
working-directory: ./rpaframework/
5555
- name: Publish package distributions to PyPI
5656
uses: pypa/gh-action-pypi-publish@release/v1
5757
with:
58-
packages-dir: robocorp/dist/
58+
packages-dir: rpaframework/dist/
5959
verbose: true

.github/workflows/test-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Package to Test PyPi
33
on:
44
create:
55
tags:
6-
- v*
6+
- 'v*'
77

88
jobs:
99
build-external-worker-client:
@@ -34,7 +34,7 @@ jobs:
3434
packages-dir: external-worker/dist/
3535
verbose: true
3636

37-
build-robocorp-client:
37+
build-rpa-framework-client:
3838
runs-on: ubuntu-latest
3939
environment: release
4040
permissions:
@@ -52,12 +52,12 @@ jobs:
5252
- run: source venv/bin/activate
5353
- run: pip install setuptools
5454
- run: python setup.py sdist
55-
working-directory: ./robocorp/
55+
working-directory: ./rpaframework/
5656
- run: pip wheel --no-deps . -w dist
57-
working-directory: ./robocorp/
57+
working-directory: ./rpaframework/
5858
- name: Publish package distributions to Test PyPI
5959
uses: pypa/gh-action-pypi-publish@release/v1
6060
with:
6161
repository-url: https://test.pypi.org/legacy/
62-
packages-dir: robocorp/dist/
62+
packages-dir: rpaframework/dist/
6363
verbose: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ This is a collection of multiple Flowable Python clients.
99
Currently, the project consists out of:
1010

1111
* [External Worker Client](./external-worker): A library to connect custom application code to Flowable with the external worker functionality
12-
* [Robocorp Client](./robocorp-client): A python module to execute Robocorp actions and tasks with the Flowable Robocorp task (based on the external worker).
12+
* [RPA Framework Client](./rpaframework): A python module to execute RPA Framework tasks with the Flowable RPA Framework task (based on the external worker).

robocorp/README.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

rpaframework/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
output

rpaframework/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Flowable RPA Framework Client
2+
3+
[License:
4+
![license](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/flowable/flowable-external-client-python/blob/main/LICENSE)
5+
6+
![Flowable Actions CI](https://github.com/flowable/flowable-external-client-python/actions/workflows/main.yml/badge.svg?branch=main)
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+
![Simple BPMN diagram with a start event, a RPA Framework task and an end event](docs/rpaframeworkExample.png)
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>`

robocorp/docs/robocorpExample.bpmn renamed to rpaframework/docs/robocorpExample.bpmn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<extensionElements>
1111
<flowable:externalWorkerInParameter source="city" target="city"></flowable:externalWorkerInParameter>
1212
<flowable:externalWorkerInParameter source="days" target="days"></flowable:externalWorkerInParameter>
13-
<flowable:externalWorkerInParameter sourceExpression="get_weather_forecast" target="__robocorpTaskName"></flowable:externalWorkerInParameter>
13+
<flowable:externalWorkerInParameter sourceExpression="get_weather_forecast" target="__rpaFrameworkTaskName"></flowable:externalWorkerInParameter>
1414
<flowable:externalWorkerOutParameter source="temperature" target="temperature"></flowable:externalWorkerOutParameter>
15-
<design:stencilid><![CDATA[RobocorpTask]]></design:stencilid>
15+
<design:stencilid><![CDATA[RpaFrameworkTask]]></design:stencilid>
1616
<design:stencilsuperid><![CDATA[ExternalWorkerTask]]></design:stencilsuperid>
1717
</extensionElements>
1818
</serviceTask>
File renamed without changes.

0 commit comments

Comments
 (0)