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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler Perseo [ 11301 ]
        Description
        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

        }
        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

        }
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] How could I do the following example with Fiware-Perseo-fe FIWARE.Question.Tech.How could I do the following example with Fiware-Perseo-fe.
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        rfernandez Rafael Fernández made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        rfernandez Rafael Fernández made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        veronika Veronika Vlnkova made changes -
        Assignee Rafael Fernández [ rfernandez ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          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: