Fix issue in handling stream variables within conditions, by Suho.
@@ -249,12 +249,12 @@ public class ConditionBuilder {
String attributeName = variable.getAttributeName();
AbstractDefinition definition;
Attribute.Type type = null;
- int streamEventChainIndex = UNKNOWN_STATE;
+ int streamEventChainIndex = matchingMetaInfoHolder.getCurrentState();
if (variable.getStreamId() == null) {
MetaStreamEvent[] metaStreamEvents = matchingMetaInfoHolder.getMetaStateEvent().getMetaStreamEvents();
- if (matchingMetaInfoHolder.getCurrentState() == UNKNOWN_STATE) {
+ if (streamEventChainIndex == UNKNOWN_STATE) {
String firstInput = null;
for (int i = 0; i < metaStreamEvents.length; i++) {
MetaStreamEvent metaStreamEvent = metaStreamEvents[i];
