Skip to content

Commit 9e55cc7

Browse files
committed
update rpaframework client readme file and adapt tests to match readme file
1 parent b004822 commit 9e55cc7

File tree

7 files changed

+301
-196
lines changed

7 files changed

+301
-196
lines changed

rpaframework/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,18 @@ The following [diagram BPMN](docs/rpaframeworkExample.bpmn) illustrates a basic
2626

2727
![Simple BPMN diagram with a start event, a RPA Framework task and an end event](docs/rpaframeworkExample.png)
2828

29-
The following example `get-weather-forecast.py` can be used as an RPA framework task:
29+
The following example `myTask.robot` can be used as an RPA framework task:
3030
```
31-
31+
*** Settings ***
32+
Library flowable.rpaframework_client.API
33+
34+
*** Tasks ***
35+
Get weather forecast
36+
${city}= flw input city
37+
${days}= flw input days
38+
${length}= Get Length ${city}
39+
${temperature}= Evaluate ${days} * ${length}
40+
flw output temperature ${temperature}
3241
```
3342

3443
The RPA Framework worker can be started with the following command:

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:design="http://flowable.org/design" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://flowable.org/test" design:palette="flowable-work-process-palette">
3-
<process id="robocorpExample" name="Robocorp Example" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
3+
<process id="rpaframeworkExample" name="RPA Framework Example" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
44
<extensionElements>
55
<design:stencilid><![CDATA[BPMNDiagram]]></design:stencilid>
66
<design:creationdate><![CDATA[2024-09-20T12:25:24.171Z]]></design:creationdate>
@@ -38,8 +38,8 @@
3838
</extensionElements>
3939
</sequenceFlow>
4040
</process>
41-
<bpmndi:BPMNDiagram id="BPMNDiagram_robocorpExample">
42-
<bpmndi:BPMNPlane bpmnElement="robocorpExample" id="BPMNPlane_robocorpExample">
41+
<bpmndi:BPMNDiagram id="BPMNDiagram_rpaframeworkExample">
42+
<bpmndi:BPMNPlane bpmnElement="rpaframeworkExample" id="BPMNPlane_rpaframeworkExample">
4343
<bpmndi:BPMNShape bpmnElement="bpmnTask_1" id="BPMNShape_bpmnTask_1">
4444
<omgdc:Bounds height="80.0" width="100.0" x="397.0" y="236.0"></omgdc:Bounds>
4545
</bpmndi:BPMNShape>

rpaframework/tests/fixtures/cassettes/test_with_custom_action.yml

+137-89
Large diffs are not rendered by default.

rpaframework/tests/fixtures/cassettes/test_with_robot.yml

+145-97
Large diffs are not rendered by default.

rpaframework/tests/fixtures/processes/robocorpExample.bpmn renamed to rpaframework/tests/fixtures/processes/rpaframeworkExample.bpmn

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:design="http://flowable.org/design" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://flowable.org/test" design:palette="flowable-work-process-palette">
3-
<process id="robocorpExample" name="Robocorp Example" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
3+
<process id="rpaframeworkExample" name="RPA Framework Example" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
44
<extensionElements>
55
<design:stencilid><![CDATA[BPMNDiagram]]></design:stencilid>
66
<design:creationdate><![CDATA[2024-09-20T12:25:24.171Z]]></design:creationdate>
@@ -12,7 +12,7 @@
1212
<flowable:externalWorkerInParameter source="days" target="days"></flowable:externalWorkerInParameter>
1313
<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>
@@ -38,8 +38,8 @@
3838
</extensionElements>
3939
</sequenceFlow>
4040
</process>
41-
<bpmndi:BPMNDiagram id="BPMNDiagram_robocorpExample">
42-
<bpmndi:BPMNPlane bpmnElement="robocorpExample" id="BPMNPlane_robocorpExample">
41+
<bpmndi:BPMNDiagram id="BPMNDiagram_rpaframeworkExample">
42+
<bpmndi:BPMNPlane bpmnElement="rpaframeworkExample" id="BPMNPlane_rpaframeworkExample">
4343
<bpmndi:BPMNShape bpmnElement="bpmnTask_1" id="BPMNShape_bpmnTask_1">
4444
<omgdc:Bounds height="80.0" width="100.0" x="397.0" y="236.0"></omgdc:Bounds>
4545
</bpmndi:BPMNShape>

rpaframework/tests/test_rpaframework_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_with_robot(self):
3838
)
3939

4040
def run_test(self, call_args):
41-
self.deploy_process('robocorpExample.bpmn')
41+
self.deploy_process('rpaframeworkExample.bpmn')
4242
process_instance_id = start_process(base_url, auth, self._process_definition_id, [
4343
{'name': 'city', 'type': 'string', 'value': 'Zurich'},
4444
{'name': 'days', 'type': 'integer', 'value': 3}

0 commit comments

Comments
 (0)