]
Mario Fusco resolved JBRULES-3268.
----------------------------------
Fix Version/s: 5.3.2.Final
5.4.0.CR1
Resolution: Done
Support for varargs needed
--------------------------
Key: JBRULES-3268
URL:
https://issues.jboss.org/browse/JBRULES-3268
Project: Drools
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.3.0.Final
Reporter: Martin A
Assignee: Mario Fusco
Priority: Minor
Fix For: 5.3.2.Final, 5.4.0.CR1
I have a method such as:
/*
* determines if any of the events passed as parameter has occurred
*/
public boolean hasAnyEventOccurred(String... events) {
for (String s : events) {
if (hasEventOccurred(s)) {
return true;
}
}
return false;
}
However in rules I can't call it like that:
hasAnyEventOccurred("event1", "event2", "event3"), I have
to workaround as so: hasAnyEventOccurred(new String[] {"event1",
"event2", "event3"})
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: