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

FIWARE.Request.Tech.Data.CEP.bug in EPA event derivation

    Details

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

      Description

      Janos Apro sent a message using the contact form at
      http://catalogue.fiware.org/.

      1. There is a bug with EPA derived event saving, sometimes we get different
      settings after reloading the page - I noticed that while creating multiple
      derived events inside one EPA.
      2. I have the following definition for EPA:

      {
      "name": "Treatment",
      "createdDate": "Thu Sep 10 2015",
      "epaType": "Basic",
      "context": "TContext",
      "inputEvents": [

      { "name": "OsmatranjeContextUpdate", "alias": "osmatranje", "consumptionPolicy": "Consume", "instanceSelectionPolicy": "First" }

      ],
      "computedVariables": [],
      "evaluationPolicy": "Immediate",
      "cardinalityPolicy": "Single",
      "internalSegmentation": [],
      "derivedEvents": [
      {
      "name": "TreatmentAlert",
      "condition": "osmatranje.stetocina_id = 22 or
      osmatranje.stetocina_id = 29 or osmatranje.stetocina_id = 30 or
      osmatranje.stetocina_id = 36",
      "reportParticipants": false,
      "expressions":

      { "Duration": "0", "mesto_id": "osmatranje.mesto_id", "stetocina_id": "osmatranje.stetocina_id", "level": "if osmatranje.vrednost > 100 then 2 else 0 endif", "entityId": "osmatranje.mesto_id ++ \"-\" ++ osmatranje.stetocina_id", "entityType": "\"TreatmentAlert\"" }

      },
      {
      "name": "TreatmentAlert",
      "condition": "osmatranje.stetocina_id = 13",
      "reportParticipants": false,
      "expressions":

      { "Duration": "0", "mesto_id": "osmatranje.mesto_id", "stetocina_id": "osmatranje.stetocina_id", "level": "if (osmatranje.vrednost >=5 and osmatranje.vrednost <=8) then 1 elseif osmatranje.vrednost > 8 then 2 else 0 endif", "entityId": "osmatranje.mesto_id ++ \"-\" ++ osmatranje.stetocina_id", "entityType": "\"TreatmentAlert\"" }

      }
      ],
      "derivedActions": []
      }
      ],
      The rule for "level" calculation depends on "stetocina_id".
      If I send the request:

      {"Name" : "OsmatranjeContextUpdate", "stetocina_id" : "36", "mesto_id" : "20034", "vrednost" : "6"}

      I expect to use the 1st rule, and "level" should be 0, but it uses the 2nd
      rule and I get 1.

      We are using the CEP VM from from FIWARE cloud, we can provide its public IP
      address if necessary. The CEP is connected with Orion which has also a public
      IP, it is possible to query the alert in Orion.

      Best regards,
      Janos

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-tech-help-new

      [Created via e-mail received from: aprojanos@gmail.com]

        Issue Links

          Activity

          Hide
          TALI Fabiana Fournier added a comment -

          Dear Janos,

          I would like to investigate your bug report, in order to do that I need
          your complete definition set. Could you please export it to a file and
          send me this file?

          As a work around before I analyse the problem, you can create two EPAs,
          one for each derived event, and move the condition to the participant
          event table.

          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
          Date: 10/09/2015 03:44 PM
          Subject: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

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

          Manuel Escriche reassigned HELP-4074:
          -------------------------------------

          Assignee: Tali Yatzkar Haham

          Technology Online] PROTON : bug in EPA event derivation
          ----------------------------------------------------------------------------------------------------------------------
          different
          multiple
          then 2
          ++
          else 0
          ++
          2nd
          public IP
          public


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

          Show
          TALI Fabiana Fournier added a comment - Dear Janos, I would like to investigate your bug report, in order to do that I need your complete definition set. Could you please export it to a file and send me this file? As a work around before I analyse the problem, you can create two EPAs, one for each derived event, and move the condition to the participant event table. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 10/09/2015 03:44 PM Subject: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation [ https://jira.fiware.org/browse/HELP-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manuel Escriche reassigned HELP-4074 : ------------------------------------- Assignee: Tali Yatzkar Haham Technology Online] PROTON : bug in EPA event derivation ---------------------------------------------------------------------------------------------------------------------- different multiple then 2 ++ else 0 ++ 2nd public IP public – This message was sent by Atlassian JIRA (v6.4.1#64016)
          Hide
          fw.ext.user FW External User added a comment -

          Dear Tali!

          Thank you for your answer.

          I have already divided the EPA, I'm sending the current json. The only
          difference is that I wanted one EPA, 'Treatment' instead of current
          'Treatment8' and 'Treatment100'.

          Best regards,
          Janos

          Show
          fw.ext.user FW External User added a comment - Dear Tali! Thank you for your answer. I have already divided the EPA, I'm sending the current json. The only difference is that I wanted one EPA, 'Treatment' instead of current 'Treatment8' and 'Treatment100'. Best regards, Janos
          Hide
          TALI Fabiana Fournier added a comment -

          Dear Janos,

          Glad you to hear you found the work around. Thank you for sending your
          definition file. I saw you added the condition in the Derivation tab.
          Please note that you could add it as a condition over the participant
          event in the Event Selection tab.

          I will open a bug report to our development team to investigate it.
          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: János Apró <aprojanos@gmail.com>
          To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
          Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          Date: 16/09/2015 11:28 AM
          Subject: Re: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

          Dear Tali!

          Thank you for your answer.

          I have already divided the EPA, I'm sending the current json. The only
          difference is that I wanted one EPA, 'Treatment' instead of current
          'Treatment8' and 'Treatment100'.

          Best regards,
          Janos

          On 09/16/2015 09:34 AM, Tali Yatzkar-Haham wrote:
          Dear Janos,

          I would like to investigate your bug report, in order to do that I need
          your complete definition set. Could you please export it to a file and
          send me this file?

          As a work around before I analyse the problem, you can create two EPAs,
          one for each derived event, and move the condition to the participant
          event table.

          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
          Date: 10/09/2015 03:44 PM
          Subject: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

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

          Manuel Escriche reassigned HELP-4074:
          -------------------------------------

          Assignee: Tali Yatzkar Haham

          Technology Online] PROTON : bug in EPA event derivation
          ----------------------------------------------------------------------------------------------------------------------
          different
          multiple
          then 2
          ++
          else 0
          ++
          2nd
          public IP
          public


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

          [attachment "TemperatureAlert.json" deleted by Tali
          Yatzkar-Haham/Haifa/IBM]

          Show
          TALI Fabiana Fournier added a comment - Dear Janos, Glad you to hear you found the work around. Thank you for sending your definition file. I saw you added the condition in the Derivation tab. Please note that you could add it as a condition over the participant event in the Event Selection tab. I will open a bug report to our development team to investigate it. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: János Apró <aprojanos@gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> Date: 16/09/2015 11:28 AM Subject: Re: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation Dear Tali! Thank you for your answer. I have already divided the EPA, I'm sending the current json. The only difference is that I wanted one EPA, 'Treatment' instead of current 'Treatment8' and 'Treatment100'. Best regards, Janos On 09/16/2015 09:34 AM, Tali Yatzkar-Haham wrote: Dear Janos, I would like to investigate your bug report, in order to do that I need your complete definition set. Could you please export it to a file and send me this file? As a work around before I analyse the problem, you can create two EPAs, one for each derived event, and move the condition to the participant event table. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 10/09/2015 03:44 PM Subject: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation [ https://jira.fiware.org/browse/HELP-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manuel Escriche reassigned HELP-4074 : ------------------------------------- Assignee: Tali Yatzkar Haham Technology Online] PROTON : bug in EPA event derivation ---------------------------------------------------------------------------------------------------------------------- different multiple then 2 ++ else 0 ++ 2nd public IP public – This message was sent by Atlassian JIRA (v6.4.1#64016) [attachment "TemperatureAlert.json" deleted by Tali Yatzkar-Haham/Haifa/IBM]
          Hide
          TALI Fabiana Fournier added a comment -

          Dear Janos,

          While I created the bug report, I examined your e-mail with the previous
          EPA definition and I noticed you added the same event twice as derived
          event (with two different conditions, and with different value assignments
          in each case). Currently the CEP doesn't support this option. So your work
          around is the right way to implement what you wanted.

          I will open a bug report, since we should alert the user that this is not
          supported as part of the verification, or we should add support for it.

          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: Tali Yatzkar-Haham/Haifa/IBM
          To: János Apró <aprojanos@gmail.com>
          Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          Date: 16/09/2015 01:28 PM
          Subject: Re: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

          Dear Janos,

          Glad you to hear you found the work around. Thank you for sending your
          definition file. I saw you added the condition in the Derivation tab.
          Please note that you could add it as a condition over the participant
          event in the Event Selection tab.

          I will open a bug report to our development team to investigate it.
          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: János Apró <aprojanos@gmail.com>
          To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
          Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          Date: 16/09/2015 11:28 AM
          Subject: Re: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

          Dear Tali!

          Thank you for your answer.

          I have already divided the EPA, I'm sending the current json. The only
          difference is that I wanted one EPA, 'Treatment' instead of current
          'Treatment8' and 'Treatment100'.

          Best regards,
          Janos

          On 09/16/2015 09:34 AM, Tali Yatzkar-Haham wrote:
          Dear Janos,

          I would like to investigate your bug report, in order to do that I need
          your complete definition set. Could you please export it to a file and
          send me this file?

          As a work around before I analyse the problem, you can create two EPAs,
          one for each derived event, and move the condition to the participant
          event table.

          Thanks,
          Tali

          Tali Yatzkar Haham
          Smart Decision Solutions
          IBM Research - Haifa, Israel
          tali@il.ibm.com 972-4-8296320

          From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
          To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
          Date: 10/09/2015 03:44 PM
          Subject: [FI-WARE-JIRA] (HELP-4074) [Fiware-tech-help] [Complex
          Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA
          event derivation

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

          Manuel Escriche reassigned HELP-4074:
          -------------------------------------

          Assignee: Tali Yatzkar Haham

          Technology Online] PROTON : bug in EPA event derivation
          ----------------------------------------------------------------------------------------------------------------------
          different
          multiple
          then 2
          ++
          else 0
          ++
          2nd
          public IP
          public


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

          [attachment "TemperatureAlert.json" deleted by Tali
          Yatzkar-Haham/Haifa/IBM]

          Show
          TALI Fabiana Fournier added a comment - Dear Janos, While I created the bug report, I examined your e-mail with the previous EPA definition and I noticed you added the same event twice as derived event (with two different conditions, and with different value assignments in each case). Currently the CEP doesn't support this option. So your work around is the right way to implement what you wanted. I will open a bug report, since we should alert the user that this is not supported as part of the verification, or we should add support for it. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: Tali Yatzkar-Haham/Haifa/IBM To: János Apró <aprojanos@gmail.com> Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> Date: 16/09/2015 01:28 PM Subject: Re: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation Dear Janos, Glad you to hear you found the work around. Thank you for sending your definition file. I saw you added the condition in the Derivation tab. Please note that you could add it as a condition over the participant event in the Event Selection tab. I will open a bug report to our development team to investigate it. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: János Apró <aprojanos@gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Cc: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> Date: 16/09/2015 11:28 AM Subject: Re: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation Dear Tali! Thank you for your answer. I have already divided the EPA, I'm sending the current json. The only difference is that I wanted one EPA, 'Treatment' instead of current 'Treatment8' and 'Treatment100'. Best regards, Janos On 09/16/2015 09:34 AM, Tali Yatzkar-Haham wrote: Dear Janos, I would like to investigate your bug report, in order to do that I need your complete definition set. Could you please export it to a file and send me this file? As a work around before I analyse the problem, you can create two EPAs, one for each derived event, and move the condition to the participant event table. Thanks, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Research - Haifa, Israel tali@il.ibm.com 972-4-8296320 From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org> To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL Date: 10/09/2015 03:44 PM Subject: [FI-WARE-JIRA] ( HELP-4074 ) [Fiware-tech-help] [Complex Event Processing (CEP) - Proactive Technology Online] PROTON : bug in EPA event derivation [ https://jira.fiware.org/browse/HELP-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Manuel Escriche reassigned HELP-4074 : ------------------------------------- Assignee: Tali Yatzkar Haham Technology Online] PROTON : bug in EPA event derivation ---------------------------------------------------------------------------------------------------------------------- different multiple then 2 ++ else 0 ++ 2nd public IP public – This message was sent by Atlassian JIRA (v6.4.1#64016) [attachment "TemperatureAlert.json" deleted by Tali Yatzkar-Haham/Haifa/IBM]
          Hide
          fw.ext.user FW External User added a comment -

          Dear Tali!

          Thank you for your answer.

          Janos

          Show
          fw.ext.user FW External User added a comment - Dear Tali! Thank you for your answer. Janos

            People

            • Assignee:
              TALI Fabiana Fournier
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: