Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/2367#discussion_r75494363
--- Diff:
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java ---
@@ -133,9 +134,13 @@ public void addState(final State<T> state) {
final int numberComputationStates = computationStates.size();
final Collection<Map<String, T>> result = new ArrayList<>();
final Collection<Tuple2<Map<String, T>, Long>> timeoutResult =
new ArrayList<>();
+ boolean skipOtherStates = false;
// iterate over all current computations
for (int i = 0; i < numberComputationStates; i++) {
+ if (skipOtherStates) {
+ continue;
+ }
--- End diff --
I think you cannot simply skip the current set of computation states
because then you would retain those states, which have a next condition and
would thus be filtered out in the `MatchingBehaviour.AFTER_LAST` case.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---