[jboss-jira] [JBoss JIRA] (DROOLS-470) Decision Table (XLS) should support fixed conditions, such as SeatDesignation(isNeighborOf($guest))
Geoffrey De Smet (JIRA)
issues at jboss.org
Wed Apr 23 08:33:34 EDT 2014
Geoffrey De Smet created DROOLS-470:
---------------------------------------
Summary: Decision Table (XLS) should support fixed conditions, such as SeatDesignation(isNeighborOf($guest))
Key: DROOLS-470
URL: https://issues.jboss.org/browse/DROOLS-470
Project: Drools
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Affects Versions: 6.1.0.Beta2
Reporter: Geoffrey De Smet
Assignee: Michael Anstis
Fix For: 6.1.0.Final
This DT should work:
||CONDITION||CONDITION||ACTION|
|$guest : SeatDesignation()|$neighbor : SeatDesignation(isNeighborOf($guest))||
|guestName == "$param"|guestName == "$param"|doSomething();|
Failing workaround 1: This workaround (as specified by the docs), does NOT work well, because it adds the same condition (isNeighborOf($guest)) multiple times in the same rule:
||CONDITION||CONDITION||CONDITION||ACTION|
|$guest : SeatDesignation()|$neighbor : SeatDesignation()|||
|guestName == "$param"|isNeighborOf($guest), guestName == "$param"|isNeighborOf($guest), guestAge == "$param"|doSomething();|
Failing workaround 2: Adding an extra, hidden column with that condition does not work when new rows are added because condition columns with an empty cell are ignored.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list