Retrieve Fiware-ServicePath from EntityContext using EntityID -


i not find detailed documentation entity service , service path, best find this section in orion user manual

i retrieve "fiware-servicepath" specific entity_id ngsi10 not provide information using querycontext.

is there way of retrieving information ?

my process described here, working except the get servicepath using entityid part:

  • a gateway pushing data orion , make "update or insert procedure":
    • get servicepath using entityid
      • if exists: update it
      • if not exists: updatecontext servicepath '/newitems'

as workaround, add servicepath metadata...

you can add fiware-servicepath: /newitems query request in order check if entity in service path or not. can add comma-separated list, e.g. fiware-servicepath: /newitems1, /newitems2.

this approach work except if entity can in service path (even diffent "/newitems" going use create entity failing existence checking) , don't know them in advance.

in case, workaround moment say, store service path associated entity, although recomendation use entity attribute that, not metadata (note in ngsi metadata associated attributes, not entity themselves).


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -