Skip to content
Snippets Groups Projects
Commit 229de6f8 authored by David Büchler's avatar David Büchler
Browse files

Unnötige Entities/Contexte/Views gelöscht

parent 3a7fbabe
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 167 deletions
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.11" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.11">
<name>DuplicatesDetails_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
</entityProvider>
<entityConsumer>
<name>PersonsConsumer</name>
<dependency>
<name>dependency</name>
<entityName>Person_entity</entityName>
<fieldName>Contacts</fieldName>
</dependency>
<children>
<entityParameter>
<name>OnlyShowContactIds_param</name>
<valueProcess>%aditoprj%/entity/DuplicatesDetails_entity/entityfields/personsconsumer/children/onlyshowcontactids_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>UnrelatedDuplicatesConsumer</name>
<dependency>
<name>dependency</name>
<entityName>DuplicatesUnrelated_entity</entityName>
<fieldName>UnrelatedPersonsProvider</fieldName>
</dependency>
<children>
<entityParameter>
<name>TargetEntity</name>
<valueProcess>%aditoprj%/entity/DuplicatesDetails_entity/entityfields/unrelatedduplicatesconsumer/children/targetentity/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>ClusterId_param</name>
<valueProcess>%aditoprj%/entity/DuplicatesDetails_entity/entityfields/unrelatedduplicatesconsumer/children/clusterid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityProvider>
<name>DuplicatesDetailsProvider</name>
</entityProvider>
<entityParameter>
<name>ClusterId_param</name>
<expose v="true" />
</entityParameter>
<entityParameter>
<name>TargetEntity_param</name>
<expose v="true" />
</entityParameter>
</entityFields>
</entity>
import("system.logging");
import("system.result");
import("system.vars");
import("DuplicateScanner_lib");
let clusterRecordId = vars.get("$param.ClusterId_param");
let contactIdsInCluster = DuplicateScannerUtils.GetCachedDuplicatesForClusterId(clusterRecordId);
logging.log("contactIdsInCluster -> " + contactIdsInCluster);
/*
* To achieve that if there are no duplicates, no contacts should be shown and therefore returned by the
* recordcontainer, an invalid id gets returned. It then is used in the conditionProcess to load the duplicates.
* Because of its invalidity, no records are shown.
*/
if(contactIdsInCluster.length == 0)
result.string(JSON.stringify(["nodata"]));
else
result.string(JSON.stringify(contactIdsInCluster));
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.get("$param.ClusterId_param"));
\ No newline at end of file
import("system.vars");
import("system.result");
result.string(vars.get("$param.TargetEntity_param"));
\ No newline at end of file
......@@ -92,24 +92,6 @@
<entityField>
<name>CLUSTER_ID</name>
</entityField>
<entityConsumer>
<name>DuplicatesDetailsConsumer</name>
<dependency>
<name>dependency</name>
<entityName>DuplicatesDetails_entity</entityName>
<fieldName>DuplicatesDetailsProvider</fieldName>
</dependency>
<children>
<entityParameter>
<name>TargetEntity_param</name>
<valueProcess>%aditoprj%/entity/Duplicates_entity/entityfields/duplicatesdetailsconsumer/children/targetentity_param/valueProcess.js</valueProcess>
</entityParameter>
<entityParameter>
<name>ClusterId_param</name>
<valueProcess>%aditoprj%/entity/Duplicates_entity/entityfields/duplicatesdetailsconsumer/children/clusterid_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>DuplicatePersonsConsumer</name>
<dependency>
......
import("system.vars");
import("system.logging");
import("system.result");
logging.log("DUPLICATES CLUSTER PARAM -> " + vars.get("$field.UID"));
result.string(vars.get("$field.UID"));
\ No newline at end of file
import("system.vars");
import("system.logging");
import("system.result");
logging.log("DUPLICATES ETNTITA PARAM -> " + "Person_entity");
logging.log("consumer selectionasd -> " + vars.get("$sys.selection"));
result.string("Person_entity");
\ No newline at end of file
......@@ -19,10 +19,6 @@
<name>5bdeb931-4e69-4520-bbc9-94fb17679331</name>
<view>PersonDublicatesTab_view</view>
</neonViewReference>
<neonViewReference>
<name>2edee35f-54dc-4727-8e42-0f74d02fbee3</name>
<view>DuplicatesMain_view</view>
</neonViewReference>
<neonViewReference>
<name>70cb2e96-5bc1-46cb-982f-b27db5d143d2</name>
<view>DuplicatesMainTest_view</view>
......
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.1.0">
<name>DuplicatesDetails</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<entity>DuplicatesDetails_entity</entity>
<references>
<neonViewReference>
<name>39ae2ad5-b5e0-42d4-979a-2b787cf90350</name>
<view>DuplicateDetail_view</view>
</neonViewReference>
<neonViewReference>
<name>1f2bc4e0-9049-4cfc-a1da-9b80cc569b75</name>
<view>DuplicatesDetails_view</view>
</neonViewReference>
</references>
</neonContext>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.2" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.2">
<name>DuplicatesDetails_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
<direction>HORIZONTAL</direction>
</boxLayout>
</layout>
<children>
<neonViewReference>
<name>7117a1a8-c038-415d-9566-ab9401e50c07</name>
<entityField>PersonsConsumer</entityField>
<view>PersonFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>aad14f6f-73dc-4597-866f-53cd20b5be12</name>
<entityField>UnrelatedDuplicatesConsumer</entityField>
<view>DuplicatesUnrelatedPersonFilter_view</view>
</neonViewReference>
</children>
</neonView>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.2" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.2">
<name>DuplicatesMain_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<neonViewReference>
<name>11db3221-5308-434f-87e6-9a19ce244bf0</name>
<entityField>DuplicatesDetailsConsumer</entityField>
<view>DuplicatesDetails_view</view>
</neonViewReference>
</children>
</neonView>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment