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 136646

Summary: Transformmap validation: variable reference name should be of the next format: $varName[.partName]]
Product: soa Reporter: Vitaly Bychkov <lativ>
Component: BPEL ValidationAssignee: Vladimir Yaroslavskiy <yaroslavskiy>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 117043    
Attachments: The project with deprected variable reference name format
The project with wrong variable reference name format

Description Vitaly Bychkov 2008-06-06 13:51:36 UTC
There was an old style to use the next transformmap variable reference name format: varName[.partName]].
Currently it is deprecated. The variable reference name should starts from '$' then the name of referenced variable at
the end there could be '.' and message part name.

The value of source and result attributes of <transform element and attribute value of <param element constructs with
type="param" should be of the next format: $varName[.partName]].


So here are two validation rules:
1. Wrong variable reference format.
2. Deprecated variable reference format.(i.e. all correct except '$' on the first place - varName[.partName]])

e.g.:
correct: 
<transform file="newXSLFile4.xsl" source="$inOpVar1.part1" result="$outOpVar1.part1" name="Transform1">
    <param name="param1" type="param" value="$inOpVar1.part2"/>
</transform>

rule 1 is broken: (!!!wrong  $inOpVar1.)
<transform file="newXSLFile4.xsl" source="$inOpVar1." result="$outOpVar1.part1" name="Transform1">
    <param name="param1" type="param" value="$inOpVar1.part2"/>
</transform>

rule 2 is broken:
<transform file="newXSLFile4.xsl" source="inOpVar1.part1" result="outOpVar1.part1" name="Transform1">
    <param name="param1" type="param" value="inOpVar1.part2"/>
</transform>
Comment 1 Vitaly Bychkov 2008-06-06 14:04:42 UTC
Created attachment 62463 [details]
The project with deprected variable reference name format
Comment 2 Vitaly Bychkov 2008-06-06 14:05:43 UTC
Created attachment 62464 [details]
The project with wrong variable reference name format
Comment 3 Vladimir Yaroslavskiy 2008-07-30 14:19:17 UTC
fixed in soa-dev: c3d7ccb7b4f4