Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4557

Dsl search with non-primitive attribute

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Reopened
    • Critical
    • Resolution: Unresolved
    • 2.2.0
    • None
    • atlas-webui
    • None

    Description

      Hi,

      I have the following types.
      I want to list the contacts by filtering them according to the organization property. But I can't find the right method to do this. I would be glad if you help.

      dsl query example:

      Contact  where  organization.__guid = "d44532ea-c6fc-417b-8c59-f988777dd51f"

       

      Example entity types:

      Contact Entity:

      {
                  "name": "Contact",
                  "description": "Contact test. ",
                  "superTypes": [
                      "Referenceable"
                  ],
                  "serviceType": "workflow",
                  "typeVersion": "1.0",
                  "attributeDefs": [
                     

      {                     "name": "name",                     "typeName": "string",                     "cardinality": "SINGLE",                     "isIndexable": true,                     "isOptional": true,                     "isUnique": false                 }

      ,
                     

      {                     "name": "organization",                     "typeName": "Organization",                     "cardinality": "SINGLE",                     "isIndexable": false,                     "isOptional": false,                     "isUnique": false                 }

      ,
                     

      {                     "name": "role",                     "typeName": "Role",                     "cardinality": "SINGLE",                     "isIndexable": false,                     "isOptional": true,                     "isUnique": false                 }

                  ]
              }

       

      Organization Entity Type:

       

      {
                  "name": "Organization",
                  "description": "organization ",
                  "superTypes": [
                      "Referenceable"
                  ],
                  "serviceType": "workflow",
                  "typeVersion": "1.0",
                  "attributeDefs": [
                     

      {                     "name": "organizationCode",                     "typeName": "string",                     "cardinality": "SINGLE",                     "isIndexable": true,                     "isOptional": false,                     "isUnique": false                 }

      ,
                     

      {                     "name": "organizationName",                     "typeName": "string",                     "cardinality": "SINGLE",                     "isIndexable": true,                     "isOptional": false,                     "isUnique": false                 }

                  ]
              }

      Attachments

        Activity

          People

            pinal Pinal Shah
            hatice.ekenek Hatice Ekenek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: