8
This commit is contained in:
@@ -69,7 +69,22 @@ public class HeuristicEventMatchingEngine implements EventMatchingEngine {
|
||||
}
|
||||
|
||||
if (hasPolyMatch) return true;
|
||||
if (polyEvents.isEmpty() && isWildcard) return true;
|
||||
if (polyEvents.isEmpty() && isWildcard) {
|
||||
String eventTypeFqn = triggerPoint.getEventTypeFqn();
|
||||
if (eventTypeFqn != null && smEventRaw.contains(".")) {
|
||||
String smEventClass = smEventRaw.substring(0, smEventRaw.lastIndexOf('.'));
|
||||
if (smEventClass.equals(eventTypeFqn)) {
|
||||
return true;
|
||||
}
|
||||
String simpleEventType = eventTypeFqn.contains(".") ? eventTypeFqn.substring(eventTypeFqn.lastIndexOf('.') + 1) : eventTypeFqn;
|
||||
String simpleSmClass = smEventClass.contains(".") ? smEventClass.substring(smEventClass.lastIndexOf('.') + 1) : smEventClass;
|
||||
if (simpleEventType.equalsIgnoreCase(simpleSmClass)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (rawTriggerEvent.contains(".") && smEventRaw.contains(".")) {
|
||||
if (smEventRaw.equals(rawTriggerEvent) || smEventRaw.endsWith("." + rawTriggerEvent) || rawTriggerEvent.endsWith("." + smEventRaw)) {
|
||||
|
||||
Reference in New Issue
Block a user