User: jon@sartography.com clicked save for misc/service-tests/bamboo/bamboo_all_depts_divs.bpmn

This commit is contained in:
sartography-automated-committer 2023-01-06 16:37:32 +00:00
parent abba1fcc3b
commit c1f843bdb1
1 changed files with 33 additions and 33 deletions

View File

@ -14,7 +14,7 @@
<spiffworkflow:unitTests> <spiffworkflow:unitTests>
<spiffworkflow:unitTest id="Multiple Departments and Divisions"> <spiffworkflow:unitTest id="Multiple Departments and Divisions">
<spiffworkflow:inputJson>{ <spiffworkflow:inputJson>{
"list_metadata": [ "bamboo_list_metadata": [
{ {
"fieldId": 4, "fieldId": 4,
"manageable": "yes", "manageable": "yes",
@ -45,33 +45,33 @@
] ]
}, },
{ {
"fieldId": 1355, "fieldId": 1355,
"manageable": "yes", "manageable": "yes",
"multiple": "no", "multiple": "no",
"name": "Division", "name": "Division",
"options": [ "options": [
{ {
"id": 18566, "id": 18566,
"archived": "no", "archived": "no",
"createdDate": "2022-12-21T18:19:08+00:00", "createdDate": "2022-12-21T18:19:08+00:00",
"archivedDate": null, "archivedDate": null,
"name": "Europe" "name": "Europe"
}, },
{ {
"id": 18563, "id": 18563,
"archived": "no", "archived": "no",
"createdDate": "2022-12-21T18:12:57+00:00", "createdDate": "2022-12-21T18:12:57+00:00",
"archivedDate": null, "archivedDate": null,
"name": "Infrastructure" "name": "Infrastructure"
}, },
{ {
"id": 18570, "id": 18570,
"archived": "no", "archived": "no",
"createdDate": "2022-12-28T23:15:46+00:00", "createdDate": "2022-12-28T23:15:46+00:00",
"archivedDate": null, "archivedDate": null,
"name": "Legal" "name": "Legal"
} }
] ]
} }
] ]
}</spiffworkflow:inputJson> }</spiffworkflow:inputJson>
@ -126,7 +126,7 @@
</spiffworkflow:unitTest> </spiffworkflow:unitTest>
<spiffworkflow:unitTest id="No Departments"> <spiffworkflow:unitTest id="No Departments">
<spiffworkflow:inputJson>{ <spiffworkflow:inputJson>{
"list_metadata": [ "bamboo_list_metadata": [
{ {
"fieldId": 1355, "fieldId": 1355,
"manageable": "yes", "manageable": "yes",
@ -189,7 +189,7 @@
</spiffworkflow:unitTest> </spiffworkflow:unitTest>
<spiffworkflow:unitTest id="No Divisions"> <spiffworkflow:unitTest id="No Divisions">
<spiffworkflow:inputJson>{ <spiffworkflow:inputJson>{
"list_metadata": [ "bamboo_list_metadata": [
{ {
"fieldId": 4, "fieldId": 4,
"manageable": "yes", "manageable": "yes",
@ -250,7 +250,7 @@
</spiffworkflow:unitTest> </spiffworkflow:unitTest>
<spiffworkflow:unitTest id="Ignores Other Fields"> <spiffworkflow:unitTest id="Ignores Other Fields">
<spiffworkflow:inputJson>{ <spiffworkflow:inputJson>{
"list_metadata": [ "bamboo_list_metadata": [
{ {
"fieldId": 4, "fieldId": 4,
"manageable": "yes", "manageable": "yes",
@ -373,7 +373,7 @@
<bpmn:outgoing>Flow_110nxt9</bpmn:outgoing> <bpmn:outgoing>Flow_110nxt9</bpmn:outgoing>
<bpmn:script>departments_and_divisions = { <bpmn:script>departments_and_divisions = {
field["name"]: field["options"] field["name"]: field["options"]
for field in list_metadata for field in bamboo_list_metadata
if field["name"] in ["Department", "Division"] if field["name"] in ["Department", "Division"]
} }
@ -381,7 +381,7 @@ departments = departments_and_divisions.get("Department", [])
divisions = departments_and_divisions.get("Division", []) divisions = departments_and_divisions.get("Division", [])
del(departments_and_divisions) del(departments_and_divisions)
del(list_metadata)</bpmn:script> del(bamboo_list_metadata)</bpmn:script>
</bpmn:scriptTask> </bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1960par" sourceRef="Activity_1dcxzhp" targetRef="Activity_0ygriuv" /> <bpmn:sequenceFlow id="Flow_1960par" sourceRef="Activity_1dcxzhp" targetRef="Activity_0ygriuv" />
<bpmn:callActivity id="Activity_1dcxzhp" name="Call Get List Metadata" calledElement="bamboo-list_metadata"> <bpmn:callActivity id="Activity_1dcxzhp" name="Call Get List Metadata" calledElement="bamboo-list_metadata">