Rules Engine : mixing AND / OR conditions
|Target version:||Candidate for next major version|
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 ?)
#6 Updated by orthagh about 7 years ago
- File glpi_searchform_proposal.png added
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.