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 146846

Summary: bpel validation should account for incorrect property name in getVariableProperty function
Product: soa Reporter: pvarghese <pvarghese>
Component: BPELAssignee: Vladimir Yaroslavskiy <yaroslavskiy>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test project

Description pvarghese 2008-09-10 20:54:42 UTC
Issue: bpel validation should account for incorrect property name in getVariableProperty function

1. BPEL editor should validate and throw an exception if the property name in the getVariableProperty function is not
defined in any of the WSDL that are directly imported by the bpel process. 

EX:
<copy>
    <from>ns1:getVariableProperty('ConcatTestOperationIn', 'ns0:str1Prop')</from>
    <to>$ConcatTestOperationOut.concatPart/str1</to>
</copy>

In the above example if the the property name "str1Prop" is not defined in any of the WSDL that are directly imported by
the process tag it should throw validation exception.
Comment 1 Vladimir Yaroslavskiy 2008-09-11 13:13:30 UTC
fixed: b083751c717f
Comment 2 Vladimir Yaroslavskiy 2008-09-11 13:16:22 UTC
Created attachment 69648 [details]
Test project
Comment 3 ggenipudi 2008-10-21 19:37:15 UTC
Tested and verified using NetBeans IDE 6.1 (Build 200810140114) and got validation error below.


init:
clean:
init:
Created dir: C:\bpprojects\gETVARIABLEPROPERTYEXCEPTIONWHEN PARTIS NOTDEFINED\project\build
C:/bpprojects/gETVARIABLEPROPERTYEXCEPTIONWHEN PARTIS NOTDEFINED/project/src/bpel.bpel:51: 12
ERROR: Function getVariableProperty() has incorrect property name "WRONG_PROPERTY".

Found validation error(s).
BUILD FAILED (total time: 0 seconds)