Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsModel change doesn't yield notification
https://www.eclipse.org/forums/index.php/mv/msg/199837/637726/#msg_637726
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?]]>Christoph2010-11-08T15:06:26-00:00Re: Model change doesn't yield notification
https://www.eclipse.org/forums/index.php/mv/msg/199837/637802/#msg_637802
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
]]>Robert Brodt2010-11-08T22:50:35-00:00Re: Model change doesn't yield notification
https://www.eclipse.org/forums/index.php/mv/msg/199837/637880/#msg_637880
The rules are expressed in OCL and checked against the EMF model of the process that is provided by the BPEL designer. We use notifications to get information on model changes. But in the special case as noted above, we don't get any notification unless the messageType attribute is set.]]>Christoph2010-11-09T09:10:45-00:00Re: Model change doesn't yield notification
https://www.eclipse.org/forums/index.php/mv/msg/199837/637932/#msg_637932
Robert Brodt2010-11-09T11:58:52-00:00Re: Model change doesn't yield notification
https://www.eclipse.org/forums/index.php/mv/msg/199837/638924/#msg_638924
]]>Christoph2010-11-13T10:26:51-00:00