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

FIWARE.Question.Tech.How could I do the following example with Fiware-Perseo-fe.

    Details

      Description

      Created question in FIWARE Q/A platform on 19-10-2018 at 11:10
      Please, ANSWER this question AT 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 }

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-10-19 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-10-19 12:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        rfernandez Rafael Fernández added a comment -

        We are working on answering this question.

        Show
        rfernandez Rafael Fernández added a comment - We are working on answering this question.
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-10-25 12:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-10-25 12:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            rfernandez Rafael Fernández
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: