Feature #1218

Rules Engine : mixing AND / OR conditions

Added by moyo over 6 years ago. Updated about 2 years ago.

Status:FeedbackStart date:
Priority:NormalDue 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.73 KB) moyo, 06/23/2013 06:14 PM

glpi_searchform_proposal.png (12.7 KB) orthagh, 06/24/2013 09:20 AM

History

#1 Updated by moyo almost 6 years ago

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

#2 Updated by jmd over 5 years ago

  • Target version changed from 0.78 to 33

#3 Updated by jmd over 4 years ago

  • Target version changed from 33 to 0.85

#4 Updated by moyo about 2 years ago

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

Image to see an example

#5 Updated by moyo about 2 years ago

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

#6 Updated by orthagh about 2 years 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.

#7 Updated by moyo about 2 years 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