Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-23

Allows to dynamically add custom conditions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-1.1.0-incubating
    • None
    • None

    Description

      I was thinking of some possible improvements on the condition types, to make them more flexible.
      Currently, condition types are defined in unomi plugins - they are read from a json inside a plugin bundle, and then loaded into memory. Some of the base conditions rely on actual java code, so it make sense to put them into a bundle - but other some other conditions are only simple combination of other conditions, and are usually very specific to a domain. An end user may want to create his own condition using simple JSON definition, and may not want to develop and deploy a bundle just for that. It would be nice to be able to add new condition types by simply using REST API.
      If you look at the pageViewEventCondition - it is only based on simple boolean and property conditions, and is very specific to the type of events that will be sent by a third party server. They should get out of default unomi installation, and rather be created directly by the server that will send these events.
      Allowing to create/edit conditions will of course require to persist them, and so require some changes in the ConditionType object, changing from "PluginType" to "Item", and the way they are read by the definitions service.

      Attachments

        Activity

          People

            draier Thomas Draier
            draier Thomas Draier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: