[ https://jira.fiware.org/browse/HELP-9320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez updated HELP-9320: --------------------------------- HD-Chapter: Data Description: Created question in FIWARE Q/A platform on 22-06-2015 at 10:06 {color: red}Please, ANSWER this question AT{color} https://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 . was: Created question in FIWARE Q/A platform on 22-06-2015 at 10:06 {color: red}Please, ANSWER this question AT{color} https://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 . HD-Enabler: Orion > [fiware-stackoverflow] Check if Entity already exists in a ContextBroker > ------------------------------------------------------------------------ > > Key: HELP-9320 > URL: https://jira.fiware.org/browse/HELP-9320 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Fermín Galán > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 22-06-2015 at 10:06 > {color: red}Please, ANSWER this question AT{color} https://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 . -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy