Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Transactions] No Rollback when a Trigger command fails
[Transactions] No Rollback when a Trigger command fails [message #419629] Thu, 29 May 2008 15:14 Go to next message
Eclipse UserFriend
Originally posted by: oemer.yildiz.semanticedge.com

Hi,

my ResourceSetListener returns an instance of EMFOperationCommand, that
is responsible for renaming the folder (i.e. keeping the 'model'
consistent) in the workspace when the name attribute of its
corresponding model element has been changed.

But in case of an error in that trigger there seems to be no way to make
the transaction rollback. Neither returning an IStatus with
ERROR-severity helps nor throwing ExecutionException.

Or am I getting the whole pre-commit/trigger-thing wrong? :)

Best regards
Ömer
Re: [Transactions] No Rollback when a Trigger command fails [message #419636 is a reply to message #419629] Fri, 30 May 2008 03:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-O44F0XCW8EDu7PUkmxYy
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi, =C3=96mer,

That sounds like a bug. Please raise it in Bugzilla. It would be most
helpful if you could include a test case, either as an attached JUnit
test or as some kind of example code.

It should be possible for an EMFOperationCommand to trigger roll-back on
a failed execution.

Cheers,

Christian

On Thu, 2008-05-29 at 17:14 +0200, =C3=96mer Yildiz wrote:

> Hi,
>=20
> my ResourceSetListener returns an instance of EMFOperationCommand, that=20
> is responsible for renaming the folder (i.e. keeping the 'model'=20
> consistent) in the workspace when the name attribute of its=20
> corresponding model element has been changed.
>=20
> But in case of an error in that trigger there seems to be no way to make=20
> the transaction rollback. Neither returning an IStatus with=20
> ERROR-severity helps nor throwing ExecutionException.
>=20
> Or am I getting the whole pre-commit/trigger-thing wrong? :)
>=20
> Best regards
> =C3=96mer

--=-O44F0XCW8EDu7PUkmxYy
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, &#214;mer,<BR>
<BR>
That sounds like a bug.&nbsp; Please raise it in Bugzilla.&nbsp; It would be most helpful if you could include a test case, either as an attached JUnit test or as some kind of example code.<BR>
<BR>
It should be possible for an EMFOperationCommand to trigger roll-back on a failed execution.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
On Thu, 2008-05-29 at 17:14 +0200, &#214;mer Yildiz wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi,</FONT>

<FONT COLOR="#000000">my ResourceSetListener returns an instance of EMFOperationCommand, that </FONT>
<FONT COLOR="#000000">is responsible for renaming the folder (i.e. keeping the 'model' </FONT>
<FONT COLOR="#000000">consistent) in the workspace when the name attribute of its </FONT>
<FONT COLOR="#000000">corresponding model element has been changed.</FONT>

<FONT COLOR="#000000">But in case of an error in that trigger there seems to be no way to make </FONT>
<FONT COLOR="#000000">the transaction rollback. Neither returning an IStatus with </FONT>
<FONT COLOR="#000000">ERROR-severity helps nor throwing ExecutionException.</FONT>

<FONT COLOR="#000000">Or am I getting the whole pre-commit/trigger-thing wrong? :)</FONT>

<FONT COLOR="#000000">Best regards</FONT>
<FONT COLOR="#000000">&#214;mer</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-O44F0XCW8EDu7PUkmxYy--
Re: [Transactions] No Rollback when a Trigger command fails [message #419641 is a reply to message #419636] Fri, 30 May 2008 14:44 Go to previous message
Eclipse UserFriend
Originally posted by: oemer.yildiz.semanticedge.com

Hi Christian,

ok I will open a bug. But I'm surprised, that nobody reported this error
before!

Cheers

Christian W. Damus schrieb:
> Hi, Ömer,
>
> That sounds like a bug. Please raise it in Bugzilla. It would be most
> helpful if you could include a test case, either as an attached JUnit
> test or as some kind of example code.
>
> It should be possible for an EMFOperationCommand to trigger roll-back on
> a failed execution.
>
> Cheers,
>
> Christian
>
> On Thu, 2008-05-29 at 17:14 +0200, Ömer Yildiz wrote:
>> Hi,
>>
>> my ResourceSetListener returns an instance of EMFOperationCommand, that
>> is responsible for renaming the folder (i.e. keeping the 'model'
>> consistent) in the workspace when the name attribute of its
>> corresponding model element has been changed.
>>
>> But in case of an error in that trigger there seems to be no way to make
>> the transaction rollback. Neither returning an IStatus with
>> ERROR-severity helps nor throwing ExecutionException.
>>
>> Or am I getting the whole pre-commit/trigger-thing wrong? :)
>>
>> Best regards
>> Ömer
Previous Topic:[Dynamic EMF] StackOverflow when using eSet
Next Topic:Strange error with ActionContribution & SWT "Item not added"
Goto Forum:
  


Current Time: Fri Apr 26 09:01:25 GMT 2024

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

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

Back to the top