Model change doesn't yield notification [message #637726] |
Mon, 08 November 2010 15:06 |
Christoph Messages: 21 Registered: September 2010 |
Junior Member |
|
|
Foreword:
I implement a BPEL validator that validates a process ad hoc (and not just on document save). Rule SA00025 states that exactly one attribute of messageType, type or element must be defined on the variable element.
To check the rules at runtime I use a org.eclipse.emf.common.notify.Notification object that informs about changes on the BPEL model.
The validation of the rule works fine except in one situation.
Say we defined two attributes, messageType and type. Obviously, SA00025 is violated. If I now delete the messageType attribute, the rule is satisfied. So far, so good. But now there will be no longer any notifications about model changes on the variable element. So neither changes on the value of type, nor the deletion of the attribute will be recognized by the validator. So, if type is deleted, SA00025 still seems to be satisfied, while it is not (since NONE of the mentioned attributes is defined).
The same use case holds for the combination messageType and element; and type and element, respectively.
Notifications will only be sent as long as messageType is present in the variable element.
This appears to me very likely as a bug, but where does it live?
|
|
|
Re: Model change doesn't yield notification [message #637802 is a reply to message #637726] |
Mon, 08 November 2010 22:50 |
|
Hi Christoph,
I'm confused...are you saying that you have implemented your own validator, or are you using the code from the eclipse BPEL Designer project? If the latter, how is this code being used and what kind of model is behind it (your own perhaps)?
I have tried this in the current bpel editor code and it appears to be working, ok the validation only happens during save, but the rules are being evaluated as expected.
Bob
|
|
|
|
Re: Model change doesn't yield notification [message #637932 is a reply to message #637880] |
Tue, 09 November 2010 11:58 |
|
Hmm, I can't even take a guess at what might be going on without being able to see the code. The only difference I can see in the BPEL model definitions between "messageType", "element" and "type" is in their type hierarchies: "messageType" is an ExtensibleElement whereas "element" and "type" are XSD elements.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04960 seconds