[ https://jira.fiware.org/browse/HELP-14838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rafael Fernández updated HELP-14838: ------------------------------------ Status: Answered (was: In Progress) > [fiware-stackoverflow] How could I do the following example with Fiware-Perseo-fe > --------------------------------------------------------------------------------- > > Key: HELP-14838 > URL: https://jira.fiware.org/browse/HELP-14838 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Rafael Fernández > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 19-10-2018 at 11:10 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/52889847/how-could-i-do-the-following-example-with-fiware-perseo-fe > +Question:+ > How could I do the following example with Fiware-Perseo-fe > +Description:+ > I am trying to execute the following example: > I have created two entities in orionCB. > service= test > subservice=/subtest > { > "id":"sensor1", > "type":"sensor", > "id_accumulator":"accumulator1", > "typeEvent": 1 //can be 1 or 0 > } > { > "id":"accumulator1", > "type":"accumulator", > "used":132, > "free":83, > "total":200 > } > I want that the rules are: > 1.- if typeEvent is 1, the used attribute will be plus 1 and the free attribute will be less 1 > 2.- if typeEvent is 0, the used attribute will be less 1 and the free attribute will be plus 1 > is it possible to do with perseo rule and subscription? > More information: > when the rules have been executing, the result will be: > -----> typeEvent:1 > { > "id":"accumulator1", > "type":"accumulator", > "used":133, > "free":82, > "total":200, > } > ---> typeEvent:0 > { > "id":"accumulator1", > "type":"accumulator", > "used":131, > "free":84, > "total":200 > } -- 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