[Backlogmanager] [FIWARE-JIRA] (HELP-13271) [fiware-stackoverflow] Insert a rule in Cepheus-CEP while running

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Fri Jan 19 14:59:02 CET 2018


     [ https://jira.fiware.org/browse/HELP-13271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-13271:
----------------------------------
    HD-Chapter: IoT
    HD-Enabler: Cepheus

> [fiware-stackoverflow] Insert a rule in Cepheus-CEP while running
> -----------------------------------------------------------------
>
>                 Key: HELP-13271
>                 URL: https://jira.fiware.org/browse/HELP-13271
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Gilles Privat
>              Labels: cep, fiware
>
> Created question in FIWARE Q/A platform on 03-01-2018 at 17:01
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/48081808/insert-a-rule-in-cepheus-cep-while-running
> +Question:+
> Insert a rule in Cepheus-CEP while running
> +Description:+
> I am starting to explore Fiware tools and I am testing Cepheus-CEP.
> I know I can set rules and other configuration parameters in the "config.json" file that Cepheus take when I launch the service, but I don't know how to especify these rules on execution time.
> For example, a "config.json" could be:
> {
>   "host":"http://localhost:8080",
>   "in":[
>     {
>       "id":"RoomX",
>       "type":"Room",
>       "attributes":[
>         { "name":"temperature", "type":"double" },
>         { "name":"shutter", "type":"string" }
>       ]
>     }
>   ],
>   "out":[
>     {
>       "id":"ShutterX",
>       "type":"Shutter",
>       "attributes":[
>         { "name":"status", "type":"string" }
>       ]
>     }
>   ],
>   "statements":[
>     "INSERT INTO Shutter SELECT R.r.shutter as id, 'closed' as status FROM pattern [ every r=Room(temperature > 26.0) -> (timer:interval(5 sec) and not Room(temperature < 26.0 and id=r.id))] as R unidirectional LEFT OUTER JOIN Shutter.std:groupwin(id).std:lastevent() as S ON R.r.shutter = S.id WHERE S is null OR S.status = 'opened'",
>     "INSERT INTO Shutter SELECT R.r.shutter as id, 'opened' as status FROM pattern [ every r=Room(temperature < 24.0) -> (timer:interval(5 sec) and not Room(temperature > 24.0 and id=r.id))] as R unidirectional LEFT OUTER JOIN Shutter.std:groupwin(id).std:lastevent() as S ON R.r.shutter = S.id WHERE S is null OR S.status = 'closed'"
>   ]
> }
> And I want to change the statements (rules) list during execution time, Is there a query or something that I could use?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy