This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
As per BPEL, a forEach counter is active only within the scope of the forEach. Even the expressions that define the completionCondition should not use the counter variable. Same goes with startCounter and finalCounter expressions, meaning they can't use the counter variable. BPEL editor should validate such wrong usages, like it identifies variables that are used outside the scope of the variable. see the counter variable svcIdx, it can't be used in the completion condition. Editor didn't validate it. <forEach name="ForEach1" parallel="no" counterName="svcIdx"> <startCounterValue>1</startCounterValue> <finalCounterValue>2</finalCounterValue> <completionCondition> <branches>$svcIdx = count($finalCtrLTstartCtrOperationIn.part1)</branches> </completionCondition> <scope name="Scope1"> <sequence name="Sequence1"> <empty name="Empty1"/> </sequence> </scope> </forEach>
fixed.