Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16139

[fiware-stackoverflow] Fiware Cygnus - Change service for only some entities with name mappings?

    Details

      Description

      Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings

      Question:
      Fiware Cygnus - Change service for only some entities with name mappings?

      Description:
      Context :
      I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works.

      What I want :
      These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan)

      Question :
      How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities?

      What I tried :
      I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities.

      {
      "serviceMappings": [
      {
      "originalService": "default",
      "newService": "paris",
      "servicePathMappings": [
      {
      "originalServicePath": "/",
      "entityMappings": [

      { "originalEntityId": "sensor1", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ,

      { "originalEntityId": "sensor2", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ,

      { "originalEntityId": "sensor3", "originalEntityType": "device", "newEntityId": "sensors", "attributeMappings": [] }

      ]
      }
      ]
      }
      ]
      }

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        5d 6h 1 Backlog Manager 10/Sep/19 6:06 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 10/Sep/19 9:06 PM
        Answered Answered Closed Closed
        21h 1 Backlog Manager 11/Sep/19 6:06 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-11 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-11 18:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-10 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-10 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-10 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-10 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        fla Fernando Lopez made changes -
        HD-Enabler Cygnus [ 11304 ] Orion [ 10875 ]
        fla Fernando Lopez made changes -
        HD-Enabler Cygnus [ 11304 ]
        Description
        Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings


        +Question:+
        Fiware Cygnus - Change service for only some entities with name mappings?

        +Description:+
        Context :
        I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works.

        What I want :
        These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan)

        Question :
        How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities?

        What I tried :
        I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities.

        {
           "serviceMappings": [
              {
                 "originalService": "default",
                 "newService": "paris",
                 "servicePathMappings": [
                    {
                       "originalServicePath": "/",
                       "entityMappings": [
                          {
                             "originalEntityId": "sensor1",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          },
                          {
                             "originalEntityId": "sensor2",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          },
                          {
                             "originalEntityId": "sensor3",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          }
                       ]
                    }
                 ]
              }
           ]
        }

        Created question in FIWARE Q/A platform on 05-09-2019 at 11:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57802922/fiware-cygnus-change-service-for-only-some-entities-with-name-mappings


        +Question:+
        Fiware Cygnus - Change service for only some entities with name mappings?

        +Description:+
        Context :
        I have a machine with Orion Context Broker, Cygnus and Ckan. I have 3 entities (sensor1, sensor2, sensor3) and I use name mappings for these three entities to write in a single Ckan datastore named sensors. So far everything works.

        What I want :
        These 3 entities are in the fiware-service default and I want them to write in the fiware-service paris (the paris organization in Ckan)

        Question :
        How to make the name mapping change the default fiware-service of these 3 entities into paris, without changing it for all entities?

        What I tried :
        I tried this, the problem with this code is that all entities of the fiware-service default are moved to the fiware-service paris, not just my trhee entities.

        {
           "serviceMappings": [
              {
                 "originalService": "default",
                 "newService": "paris",
                 "servicePathMappings": [
                    {
                       "originalServicePath": "/",
                       "entityMappings": [
                          {
                             "originalEntityId": "sensor1",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          },
                          {
                             "originalEntityId": "sensor2",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          },
                          {
                             "originalEntityId": "sensor3",
                             "originalEntityType": "device",
                             "newEntityId": "sensors",
                             "attributeMappings": []
                          }
                       ]
                    }
                 ]
              }
           ]
        }

        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-05 12:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-05 12:06|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: