Feature #1218

Rules Engine : mixing AND / OR conditions

Added by moyo about 5 years ago. Updated 10 months ago.

Status:Feedback Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Rules Engines
Target version:Candidate for next major version

Description

see http://www.glpi-project.org/forum/viewtopic.php?pid=71787#p71787

Idea : Store hierarchical tree in rule as array :

AND - criteria 1
    - OR - AND - criteria 2
               - criteria 3
               - criteria 4
         - AND - criteria 5
               - criteria 6

array('AND' => array(criterias => array(1),
                     nodes => array('OR => array(nodes => array(
                                         'AND' => array('criterias' => array(2,3,4)),
                                         'AND' => array('criterias' => array(5,6))
                                    )))
     ))

Need to find a solution to be able to edit hierarchy (maybe use jstree ?)

41.png (9.7 kB) moyo, 06/23/2013 06:14 pm

glpi_searchform_proposal.png (12.7 kB) orthagh, 06/24/2013 09:20 am

History

Updated by moyo over 4 years ago

  • Subject changed from Rules : mixing AND / OR conditions to Rules Engine : mixing AND / OR conditions

Updated by jmd about 4 years ago

  • Target version changed from 0.78 to 33

Updated by jmd about 3 years ago

  • Target version changed from 33 to 0.85

Updated by moyo 10 months ago

  • File 41.png added
  • Status changed from New to Feedback

Image to see an example

Updated by moyo 10 months ago

  • Target version changed from 0.85 to Candidate for next major version

Updated by orthagh 10 months ago

As described in previous teclib' meeting, one of our customers suggests to add an advanced mode.
This mode removes the AND/OR/NOT dropdowns and inserts an text input who can receive the index of lines separated by the operators.

The standard mode could be the current search form.

Updated by moyo 10 months ago

This ticket is about rules engine not search engine.
Ticket for search engine is #2681
As discussed for search engine mixing WHERE and HAVING render complex condition not possible for the moment.

Also available in: Atom PDF