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

FIWARE.Question.Tech.Data.CEP.Array Condition within EPA CEP PROTON

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 29-09-2016 at 17:09
      Please, ANSWER this question AT http://stackoverflow.com/questions/39774810/array-condition-within-epa-cep-proton

      Question:
      Array Condition within EPA CEP PROTON

      Description:
      Using CEP Proton I want to check if, for the events received in a time interval, the id of the second and following events is contained in an attribute of type array coming in the first event. Let's say the first event is coming with the attribute called group that is an array of integers (10, 20, 30). The following events will come with an id, ex 20, 25 and so on. I want to check if the id of those events is included in the attribute group included in the first event.
      For that I have created a condition in EPA

      ArrayContains(ArrayGet(myevent.group,0),ArrayGet(myevent.id,ArraySize(myevent.id)-1))

      However I'm getting an error when I click on verify

      Error Error in EPA: expression error of undefined myepa

      Am I doing anything wrong?
      Cannot I access to the attribute array using ArrayGet? Or maybe ArrayContains cannot work with the result of ArrayGet?

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2016-09-29 18:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-09-29 18:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        mev Manuel Escriche made changes -
        HD-Enabler Unknown [ 10910 ] CEP [ 10869 ]
        backlogmanager Backlog Manager made changes -
        HD-Chapter Unknown [ 10845 ] Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Assignee Uri Shani [ urishani ]
        urishani Uri Shani made changes -
        Description
        Created question in FIWARE Q/A platform on 29-09-2016 at 17:09
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/39774810/array-condition-within-epa-cep-proton


        +Question:+
        Array Condition within EPA CEP PROTON

        +Description:+
        Using CEP Proton I want to check if, for the events received in a time interval, the id of the second and following events is contained in an attribute of type array coming in the first event. Let's say the first event is coming with the attribute called group that is an array of integers (10, 20, 30). The following events will come with an id, ex 20, 25 and so on. I want to check if the id of those events is included in the attribute group included in the first event.
        For that I have created a condition in EPA

        ArrayContains(ArrayGet(myevent.group,0),ArrayGet(myevent.id,ArraySize(myevent.id)-1))


        However I'm getting an error when I click on verify

        Error Error in EPA: expression error of undefined myepa


        Am I doing anything wrong?
        Cannot I access to the attribute array using ArrayGet? Or maybe ArrayContains cannot work with the result of ArrayGet?
        Created question in FIWARE Q/A platform on 29-09-2016 at 17:09
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/39774810/array-condition-within-epa-cep-proton


        +Question:+
        Array Condition within EPA CEP PROTON

        +Description:+
        Using CEP Proton I want to check if, for the events received in a time interval, the id of the second and following events is contained in an attribute of type array coming in the first event. Let's say the first event is coming with the attribute called group that is an array of integers (10, 20, 30). The following events will come with an id, ex 20, 25 and so on. I want to check if the id of those events is included in the attribute group included in the first event.
        For that I have created a condition in EPA

        ArrayContains(ArrayGet(myevent.group,0),ArrayGet(myevent.id,ArraySize(myevent.id)-1))


        However I'm getting an error when I click on verify

        Error Error in EPA: expression error of undefined myepa


        Am I doing anything wrong?
        Cannot I access to the attribute array using ArrayGet? Or maybe ArrayContains cannot work with the result of ArrayGet?
        urishani Uri Shani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

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

        Show
        backlogmanager Backlog Manager added a comment - 2016-10-06 12:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Array Condition within EPA CEP PROTON FIWARE.Question.Tech.Data.CEP.Array Condition within EPA CEP PROTON
        HD-Node Unknown [ 10852 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 13h 28m 1 Uri Shani 02/Oct/16 7:34 AM
        In Progress In Progress Closed Closed
        4d 4h 31m 1 Backlog Manager 06/Oct/16 12:06 PM

          People

          • Assignee:
            urishani Uri Shani
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: