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 148295 - Bpel source code does not get updated when the mapper gets updated and throws valiation errors
Summary: Bpel source code does not get updated when the mapper gets updated and throws...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 21:55 UTC by ggenipudi
Modified: 2008-10-21 22:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project (8.76 KB, application/octet-stream)
2008-09-24 21:56 UTC, ggenipudi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ggenipudi 2008-09-24 21:55:49 UTC
Open the attached project and open the newprocess.bpel and you will see validation errors.

Create a predicate under variable2/Address and added addr1 as predicate and cast AnyElement under Address/NewElement to
childernType under newXmlSchema1.xsd.

Now delete the predicate and click validate you will see the validation fails because of the old code mapping.

    <copy>
            <sxed:editor>
               <sxed:pseudoComps></sxed:pseudoComps>
            </sxed:editor>
            <from>$Variable2/ns0:Address[Addr1]/newElement/aaa/ns1:childernType/ns1:childname</from>
            <to>$Variable2/FirstName</to>
         </copy>
Comment 1 ggenipudi 2008-09-24 21:56:17 UTC
Created attachment 70530 [details]
project
Comment 2 Nikita Krjukov 2008-10-08 20:08:24 UTC
I'm sure the reason of validation error is that the pseudo-component is declared wrong way
            <sxed:editor>
               <sxed:pseudoComps></sxed:pseudoComps>
            </sxed:editor>

It should not be empty. And it is the same problem as in the issue #147226 and #147554 

Comment 3 Nikita Krjukov 2008-10-08 20:12:47 UTC
I found another problem with the attached project and I'm going to fix it in scope of this issue. 
The steps are following:
- Create any predicate for variable2/Address
- new predicate extensions appears inside of variable2 in BPEL sources
- create pseudo-element under Address[...]/NewElement/aaa/Any Element to childernType under newXmlSchema1.xsd.
- new pseudoComp extension appears insid of variable2 in BPEL sources
- BUT the first predicate extension disappears. 

It is deleted by the cleaning function. The cleaning works wrong.  
Comment 4 Nikita Krjukov 2008-10-08 20:21:53 UTC
Changes are here http://hg.netbeans.org/soa-dev/rev/d86aa14e8320

Despite of the summary of the issue is very wide, I think we can consider this bug as fixed. 
It partly duplicates the #147226 and depends on the #149532
Comment 5 ggenipudi 2008-10-21 22:30:48 UTC
Tested and verified using NetBeans IDE 6.1 (Build 200810140114) and the predicates and pseudo elements are there.

 <variable name="Variable2" element="ns0:PersonInformation">
         <sxed:editor>
            <sxed:pseudoComps>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp/>
               <sxed:pseudoComp parentPath="$Variable2/ns0:Address[Addr1]/newElement/aaa" type="ns1:childernType"
qName="ns1:childernType" source="from"/>
            </sxed:pseudoComps>
            <sxed:predicates>
               <sxed:predicate path="$Variable2/ns0:Address[Addr1]" source="from"/>
            </sxed:predicates>
         </sxed:editor>