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.

Bug 125001 - ForEach expression validation
Summary: ForEach expression validation
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 23:57 UTC by kiran_bhumana
Modified: 2008-03-27 15:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (7.27 KB, application/x-compressed)
2008-03-27 15:42 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kiran_bhumana 2008-01-09 23:57:44 UTC
for each expressions can't be negative.   

<startCounterValue expressionLanguage="anyURI"?>
      unsigned-integer-expression
   </startCounterValue>
   <finalCounterValue expressionLanguage="anyURI"?>
      unsigned-integer-expression
   </finalCounterValue>
   <completionCondition>?
      <branches expressionLanguage="anyURI"?
         successfulBranchesOnly="yes|no"?>?
         unsigned-integer-expression
      </branches>
   </completionCondition>

I used the following forEach in a BPEL and the editor didn't validate that the expressions are invalid. All the values
startCounterValue, finalCounterValue, completionCondition are ngative. 

        <forEach name="ForEach1" parallel="no" counterName="svcIdx">
            <startCounterValue>-1</startCounterValue>
            <finalCounterValue>-2</finalCounterValue>
            <completionCondition>
                <branches>-1</branches>
            </completionCondition>
            <scope name="Scope1">
                <sequence name="Sequence1">
                    <empty name="Empty1"/>
                </sequence>
            </scope>
        </forEach>
Comment 1 Sergey Lunegov 2008-03-18 08:54:40 UTC
Changed target milestone.
Comment 2 Vladimir Yaroslavskiy 2008-03-27 15:42:09 UTC
Created attachment 59218 [details]
Test project
Comment 3 Vladimir Yaroslavskiy 2008-03-27 15:47:53 UTC
fixed: e6ef891b571f