Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Live vs Batch validation
Live vs Batch validation [message #1513587] Tue, 16 December 2014 17:15 Go to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi again,

Apparently Live validation does not create an entry in the Eclipse Problems view. Is there any way to convert these Live validation errors so that they are persisted the same way as Batch errors, or do I need to define two different constraints, one for mode="Live" and one for mode="Batch"?

Thanks!
Bob
Re: Live vs Batch validation [message #1513765 is a reply to message #1513587] Tue, 16 December 2014 20:39 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1195
Registered: July 2009
Location: Canada
Senior Member

Hi, Bob,

Live validation rules are run in batch mode, so when you perform a
batch validation, those rules should also be producing problem markers.

If you need rules to produce problem markers when they are run in live
mode, then you may be able to implement a validation listener that
creates the problem markers, but then you have the problem of how to
detect when markers are stale and need to be deleted. The live
validation was originally designed primarily to support the EMF
Transactions, so that rules could trigger transaction rollback. In
such case, problem markers wouldn't make sense because the changes
having been reverted means that the model does not enter an ill-formed
state and there's nothing to mark up.

HTH,

Christian

On 2014-12-16 17:15:45 +0000, Robert Brodt said:

> Hi again,
>
> Apparently Live validation does not create an entry in the Eclipse
> Problems view. Is there any way to convert these Live validation errors
> so that they are persisted the same way as Batch errors, or do I need
> to define two different constraints, one for mode="Live" and one for
> mode="Batch"?
>
> Thanks!
> Bob
Re: Live vs Batch validation [message #1515979 is a reply to message #1513765] Thu, 18 December 2014 14:58 Go to previous message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

That makes sense now - I think I'm trying to use Live validation for the wrong purpose here. I'll have to rethink my strategy a bit.

Thanks again Christian
and Merry Christmas! Smile
Previous Topic:Making URIHandlerImpl more REST-able
Next Topic:[CDO] ArrayStoreException on XML imported resource
Goto Forum:
  


Current Time: Fri Aug 23 21:53:16 GMT 2019

Powered by FUDForum. Page generated in 0.01950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top