Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/httpv2_recording.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pendingTaskStack":[{"id":"Activity_17nl8sw","data":{"resp_get":{"body":{"userId":1,"id":1,"title":"delectus aut autem","completed":false},"mimetype":"application/json","http_status":200,"operator_identifier":"http/GetRequest"}}}]}
36 changes: 18 additions & 18 deletions examples/httpv2_test.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,13 @@
<bpmn:scriptTask id="Activity_03v12d2" name="Load Test Fixture">
<bpmn:incoming>Flow1_1770249220377</bpmn:incoming>
<bpmn:outgoing>Flow_194n4u3</bpmn:outgoing>
<bpmn:property id="Property_0zy7o63" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_13upctk">
<bpmn:sourceRef>DataStoreReference_001g6et</bpmn:sourceRef>
<bpmn:targetRef>Property_0zy7o63</bpmn:targetRef>
</bpmn:dataInputAssociation>
<bpmn:script>spiff_testFixture = {
"pendingTaskStack": [
{
"id": "Activity_17nl8sw",
"data": {
"resp_get": {
"body": {
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": False
},
"mimetype": "application/json",
"http_status": 200,
"operator_identifier": "http/GetRequest"
},
},
},
],
"pendingTaskStack": httpv2_recording["pendingTaskStack"],
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1wg6aca" sourceRef="Activity_180yucj" targetRef="Gateway_04092wq" />
Expand Down Expand Up @@ -81,7 +69,9 @@ spiff_testResult = test()</bpmn:script>
<bpmn:incoming>Flow_1jcirrx</bpmn:incoming>
<bpmn:outgoing>Flow_1dr6ipn</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:dataStoreReference id="DataStoreReference_001g6et" name="httpv2_recording" dataStoreRef="httpv2_recording" type="jsonfile" />
</bpmn:process>
<bpmn:dataStore id="httpv2_recording" name="JSONFileDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1770249220377">
<bpmndi:BPMNShape id="StartEvent_1770249220377_di" bpmnElement="StartEvent_1770249220377">
Expand Down Expand Up @@ -111,6 +101,12 @@ spiff_testResult = test()</bpmn:script>
<dc:Bounds x="590" y="230" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_001g6et_di" bpmnElement="DataStoreReference_001g6et">
<dc:Bounds x="145" y="275" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="130" y="332" width="80" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow1_1770249220377_di" bpmnElement="Flow1_1770249220377">
<di:waypoint x="78" y="160" />
<di:waypoint x="120" y="160" />
Expand Down Expand Up @@ -145,6 +141,10 @@ spiff_testResult = test()</bpmn:script>
<di:waypoint x="720" y="270" />
<di:waypoint x="720" y="185" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_13upctk_di" bpmnElement="DataInputAssociation_13upctk">
<di:waypoint x="170" y="275" />
<di:waypoint x="170" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
2 changes: 1 addition & 1 deletion examples/jsonfiledatastore.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"x": 51}
{"x": 59}
1 change: 1 addition & 0 deletions examples/manual_tasks_recording.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pendingTaskStack":[{"id":"Activity_1n7p3m4","data":{}},{"id":"Activity_1h7gm30","data":{}}]}
22 changes: 18 additions & 4 deletions examples/manual_tasks_test.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ spiff_testResult = test()</bpmn:script>
<bpmn:scriptTask id="Activity_0wx9qgj" name="Load Test Fixture">
<bpmn:incoming>Flow1_1770121675349</bpmn:incoming>
<bpmn:outgoing>Flow_0glzdyc</bpmn:outgoing>
<bpmn:property id="Property_1v7pcii" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_0a95kyb">
<bpmn:sourceRef>DataStoreReference_1cc1o68</bpmn:sourceRef>
<bpmn:targetRef>Property_1v7pcii</bpmn:targetRef>
</bpmn:dataInputAssociation>
<bpmn:script>spiff_testFixture = {
"pendingTaskStack": [
{ "id": "Activity_1n7p3m4", "data": {} },
{ "id": "Activity_1h7gm30", "data": {} },
]
"pendingTaskStack": manual_tasks_recording["pendingTaskStack"]
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:dataStoreReference id="DataStoreReference_1cc1o68" name="manual_tasks_recording" dataStoreRef="manual_tasks_recording" type="jsonfile" />
</bpmn:process>
<bpmn:dataStore id="manual_tasks_recording" name="JSONFileDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1770121675349">
<bpmndi:BPMNShape id="StartEvent_1770121675349_di" bpmnElement="StartEvent_1770121675349">
Expand Down Expand Up @@ -95,6 +99,12 @@ spiff_testResult = test()</bpmn:script>
<dc:Bounds x="110" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_1cc1o68_di" bpmnElement="DataStoreReference_1cc1o68">
<dc:Bounds x="135" y="265" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="117" y="322" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow1_1770121675349_di" bpmnElement="Flow1_1770121675349">
<di:waypoint x="68" y="160" />
<di:waypoint x="110" y="160" />
Expand Down Expand Up @@ -129,6 +139,10 @@ spiff_testResult = test()</bpmn:script>
<di:waypoint x="210" y="160" />
<di:waypoint x="260" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_0a95kyb_di" bpmnElement="DataInputAssociation_0a95kyb">
<di:waypoint x="160" y="265" />
<di:waypoint x="160" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
1 change: 1 addition & 0 deletions examples/user_task_recording.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pendingTaskStack":[{"id":"ut_task","data":{"some_field":"jj"}}]}
23 changes: 20 additions & 3 deletions examples/user_task_test.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,23 @@ spiff_testResult = test()</bpmn:script>
<bpmn:scriptTask id="Activity_0d27dhn" name="Load Test Fixture">
<bpmn:incoming>Flow1_1770132558798</bpmn:incoming>
<bpmn:outgoing>Flow_1fbs4ll</bpmn:outgoing>
<bpmn:property id="Property_1dsm2yn" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_0p1gofe">
<bpmn:sourceRef>DataStoreReference_1h48ew8</bpmn:sourceRef>
<bpmn:targetRef>Property_1dsm2yn</bpmn:targetRef>
</bpmn:dataInputAssociation>
<bpmn:script>spiff_testFixture = {
"pendingTaskStack": [
{ "id": "ut_task", "data": { "some_field": "jj" } },
],
"pendingTaskStack": user_task_recording["pendingTaskStack"],
"expected": {
"some_field": "jj",
}
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:dataStoreReference id="DataStoreReference_1h48ew8" name="user_task_recording" dataStoreRef="user_task_recording" type="jsonfile" />
</bpmn:process>
<bpmn:dataStore id="jsonfiledatastore" name="JSONFileDataStore" />
<bpmn:dataStore id="user_task.bpmn.recording" name="JSONFileDataStore" />
<bpmn:dataStore id="user_task_recording" name="JSONFileDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1770132558798">
<bpmndi:BPMNShape id="StartEvent_1770132558798_di" bpmnElement="StartEvent_1770132558798">
Expand Down Expand Up @@ -98,6 +105,12 @@ spiff_testResult = test()</bpmn:script>
<dc:Bounds x="120" y="120" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_1h48ew8_di" bpmnElement="DataStoreReference_1h48ew8">
<dc:Bounds x="145" y="275" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="128" y="332" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow1_1770132558798_di" bpmnElement="Flow1_1770132558798">
<di:waypoint x="68" y="160" />
<di:waypoint x="120" y="160" />
Expand Down Expand Up @@ -132,6 +145,10 @@ spiff_testResult = test()</bpmn:script>
<di:waypoint x="220" y="160" />
<di:waypoint x="260" y="160" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_0p1gofe_di" bpmnElement="DataInputAssociation_0p1gofe">
<di:waypoint x="170" y="275" />
<di:waypoint x="170" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading