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

FIWARE.Question.Tech.Data.OrionContextBroker.OtherWaysToCheckIfAnEntityExists

    Details

      Description

      Created question in FIWARE Q/A platform on 22-06-2015 at 10:06
      Please, ANSWER this question AT http://stackoverflow.com/questions/30974926/check-if-entity-already-exists-in-a-contextbroker

      Question:
      Check if Entity already exists in a ContextBroker

      Description:
      Recently i've been working on an application which allow the users to query enities from a ContextBroker , Cosmos and so on . One feature of the application is to initialize an entity which will be used by a connected object to store data .

      The creation works fine , but I have a little problem .

      As said in the documentation for the Orion ContextBroker , when an Entity already exists the APPEND action is interpreted as a UPDATE (I sincerely don't understand why) . So here's a scenario , the user have a Entity called Room1 , the sensors give him his data and stores it . One day , he want to create a new entity , but make an error and call it Room1 . All the current data from Room1 will be reset to the default value I put in my application .

      Here is my question , is there a way to check if the entity already exist other than doing a manual query (which will take a much longer time to process) in the application before the creation ?

      Thank you for reading my question and have a good day .

      Guillaume Jourdain .

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 28/Sep/15 9:04 PM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 29/Sep/15 12:04 AM
        Answered Answered Closed Closed
        1d 3h 1 Backlog Manager 30/Sep/15 3:04 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        oriondev TID Orion Developer made changes -
        Summary FIWARE.Question.Tech.Data.OrionContextBroker. FIWARE.Question.Tech.Data.OrionContextBroker.OtherWaysToCheckIfAnEntityExists
        oriondev TID Orion Developer made changes -
        Summary FIWARE.Question.Lab.Check if Entity already exists in a ContextBroker FIWARE.Question.Tech.Data.OrionContextBroker.
        mev Manuel Escriche made changes -
        Assignee Fermín Galán [ fermin ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-30 03:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-30 03:05|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 -

        2015-09-29 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-29 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-28 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-28 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-28 18:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-28 18:05|CREATED monitor | # answers= 1, accepted answer= True
        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: