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.
The attached bpel contains two reply activites for the same partner but the bpel validation fails to catch that. Also note that these reply activities are not part of any if/switch or any other branch on a decision gate.
Created attachment 32331 [details] WSDL File
Created attachment 32332 [details] BPEL File
are you aware of a particular static analysis rule that pertains to this case? We have not implemnted all of the 90 rules because of time constraints. Or was this one of the cases comvered by the previous build system validation logic that has now been displaced by common validation logic?
Standard faluts section of spec talks about missingRequest fault type to be Thrown when a reply activity cannot be associated with an incomplete receive activity by matching the partnerLink, operation and messageExchange tuple. Although not defined as part of static validation, this should be part of validation. Although, agreed the validation cannot fully validate multiple reply for all cases, for instance if they happen to be part of any if activity based on condition outcome of which is determined in runtime, but for other simpler cases (like the one attached), the validation should be able to catch and report this to be invalid.
There are many validation rules that can be implemented that are not defined by Static Analysis. So it would be better to change this to an Enhancement rather than a bug.
bpel validation bug, changing subcomponent. Should we have a subcomponent called "validation"?
need to make sure this is reasonable RFE.
future release.
Fixed in trunk and sierra.
Correction: fixed in sierra only.
The algorithm for the rule is: 1. If two replies for the same partner link are not in a decision gate (if, else, elseif, FaultHandlers), the error is shown. 2. If two replies for the same partner link have common grandparent (Sequence) and all subparents are Sequence, the error is shown even the replies is in a decision gate.