Skip to content
Snippets Groups Projects
Lead_entity.aod 7.69 KiB
<?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.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17">
  <name>Lead_entity</name>
  <majorModelMode>DISTRIBUTED</majorModelMode>
  <documentation>%aditoprj%/entity/Lead_entity/documentation.adoc</documentation>
  <grantCreate v="false" />
  <grantUpdate v="false" />
  <grantDelete v="false" />
  <recordContainer>db</recordContainer>
  <entityFields>
    <entityProvider>
      <name>#PROVIDER</name>
    </entityProvider>
    <entityField>
      <name>LEAD_SALUTATION</name>
      <title>Salutation</title>
    </entityField>
    <entityField>
      <name>LEAD_TITLE</name>
      <title>Title</title>
    </entityField>
    <entityField>
      <name>LEAD_FIRSTNAME</name>
      <title>Firstname</title>
    </entityField>
    <entityField>
      <name>LEAD_LASTNAME</name>
      <title>Lastname</title>
    </entityField>
    <entityField>
      <name>LEAD_NAME</name>
      <title>Company name</title>
    </entityField>
    <entityField>
      <name>LEAD_COUNTRY</name>
      <title>Country</title>
    </entityField>
    <entityField>
      <name>LEAD_ZIP</name>
      <title>Zip</title>
    </entityField>
    <entityField>
      <name>LEAD_CITY</name>
      <title>City</title>
    </entityField>
    <entityField>
      <name>LEAD_ADDRESS</name>
      <title>Street</title>
    </entityField>
    <entityProvider>
      <name>LeadP</name>
      <targetContextField>person_context</targetContextField>
      <targetIdField>LEAD_PERSCONTACT</targetIdField>
      <titlePlural>Transfered data</titlePlural>
      <dependencies>
        <entityDependency>
          <name>71d298e2-79b9-43f0-9c8c-ee0a1a71cea4</name>
          <entityName>Leadimport_entity</entityName>
          <fieldName>LeadC</fieldName>
          <isConsumer v="false" />
        </entityDependency>
      </dependencies>
    </entityProvider>
    <entityParameter>
      <name>LeadImportId</name>
      <expose v="true" />
    </entityParameter>
    <entityField>
      <name>LEADID</name>
    </entityField>
    <entityField>
      <name>LEAD_SOURCE</name>
      <title>Source</title>
    </entityField>
    <entityField>
      <name>LEAD_PERSON</name>
    </entityField>
    <entityConsumer>
      <name>ContactId</name>
      <dependency>
        <name>dependency</name>
        <entityName>Person_entity</entityName>
        <fieldName>Contact</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContactId_param</name>
          <valueProcess>%aditoprj%/entity/Lead_entity/entityfields/contactid/children/contactid_param/valueProcess.js</valueProcess>
        </entityParameter>
      </children>
    </entityConsumer>
    <entityField>
      <name>LEADDUP_STATUS</name>
      <title>Duplicate status</title>
      <consumer>KeywordDupStatus</consumer>
      <displayValueProcess>%aditoprj%/entity/Lead_entity/entityfields/leaddup_status/displayValueProcess.js</displayValueProcess>
    </entityField>
    <entityField>
      <name>LEAD_ORGANISATIONID</name>
    </entityField>
    <entityField>
      <name>person_context</name>
      <valueProcess>%aditoprj%/entity/Lead_entity/entityfields/person_context/valueProcess.js</valueProcess>
    </entityField>
    <entityField>
      <name>LEAD_PERSCONTACT</name>
      <valueProcess>%aditoprj%/entity/Lead_entity/entityfields/lead_perscontact/valueProcess.js</valueProcess>
    </entityField>
    <entityConsumer>
      <name>KeywordDupStatus</name>
      <dependency>
        <name>dependency</name>
        <entityName>KeywordEntry_entity</entityName>
        <fieldName>SpecificContainerKeywords</fieldName>
      </dependency>
      <children>
        <entityParameter>
          <name>ContainerName_param</name>
          <valueProcess>%aditoprj%/entity/Lead_entity/entityfields/keyworddupstatus/children/containername_param/valueProcess.js</valueProcess>
          <expose v="true" />
        </entityParameter>
      </children>
    </entityConsumer>
    <entityProvider>
      <name>#PROVIDER_AGGREGATES</name>
      <useAggregates v="true" />
    </entityProvider>
  </entityFields>
  <recordContainers>
    <dbRecordContainer>
      <name>db</name>
      <alias>Data_alias</alias>
      <conditionProcess>%aditoprj%/entity/Lead_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
      <linkInformation>
        <linkInformation>
          <name>c4a59fcc-2c94-4944-ae57-790a4adcca30</name>
          <tableName>LEAD</tableName>
          <primaryKey>LEADID</primaryKey>
          <isUIDTable v="true" />
          <readonly v="false" />
        </linkInformation>
      </linkInformation>
      <recordFieldMappings>
        <dbRecordFieldMapping>
          <name>LEAD_ADDRESS.value</name>
          <recordfield>LEAD.ADDRESS</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_CITY.value</name>
          <recordfield>LEAD.CITY</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_COUNTRY.value</name>
          <recordfield>LEAD.COUNTRY</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_FIRSTNAME.value</name>
          <recordfield>LEAD.FIRSTNAME</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_LASTNAME.value</name>
          <recordfield>LEAD.LASTNAME</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_NAME.value</name>
          <recordfield>LEAD.NAME</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_SALUTATION.value</name>
          <recordfield>LEAD.SALUTATION</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_TITLE.value</name>
          <recordfield>LEAD.TITLE</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_ZIP.value</name>
          <recordfield>LEAD.ZIP</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEADID.value</name>
          <recordfield>LEAD.LEADID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_SOURCE.value</name>
          <recordfield>LEAD.SOURCE</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEADDUP_STATUS.value</name>
          <recordfield>LEAD.DUPSTATUS</recordfield>
          <isFilterable v="true" />
          <isLookupFilter v="true" />
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_PERSON.value</name>
          <recordfield>LEAD.PERSON_ID</recordfield>
        </dbRecordFieldMapping>
        <dbRecordFieldMapping>
          <name>LEAD_ORGANISATIONID.value</name>
          <recordfield>LEAD.ORGANISATION_ID</recordfield>
        </dbRecordFieldMapping>
      </recordFieldMappings>
    </dbRecordContainer>
  </recordContainers>
</entity>