Skip to main content



      Home
Home » Modeling » EMF » Live vs Batch validation
Live vs Batch validation [message #1513587] Tue, 16 December 2014 12:15 Go to next message
Eclipse UserFriend
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 15:39 Go to previous messageGo to next message
Eclipse UserFriend
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 09:58 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 09:10:06 EDT 2025

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

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

Back to the top