Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Refining Mode : Cannot create
[ATL] Refining Mode : Cannot create [message #642492] Wed, 01 December 2010 15:21 Go to next message
stef is currently offline stefFriend
Messages: 12
Registered: September 2010
Junior Member
Hello,

I want to use refining mode in ATL. I have the same metamodel in input and output.

I have a object Activity which has relation (Transition) with an other Activity.
Transition 1 ----> Activity A ----> Transition 2

I want to split the activity A into 2 Actiivty (A and B) and create a new transition between A and B :
Transition 1 ----> Activity A ----> Transition 3 ---> Activity B ----> Transition

My code is like this :
Rule Split {
from
s : Xpdl!Activity (....... test.....)
to
t : Xpdl!Activity (
transitionsFrom <- t2
),
t1 : Xpdl!Activity (
transitionsFrom <- s.transitionsFrom,
transitionsTo <- t2
),
t2 : Xpdl!Transition ()
}

When I execute this transformation i have this error :
org.eclipse.m2m.atl.engine.emfvm.VMException: Cannot create XPDL!Transition

Can somebody help me please ?

)
Re: [ATL] Refining Mode : Cannot create [message #642530 is a reply to message #642492] Wed, 01 December 2010 17:03 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Le 01/12/2010 16:21, stef a écrit :
> Hello,
>
> I want to use refining mode in ATL. I have the same metamodel in input
> and output.
>
> I have a object Activity which has relation (Transition) with an other
> Activity. Transition 1 ----> Activity A ----> Transition 2
>
> I want to split the activity A into 2 Actiivty (A and B) and create a
> new transition between A and B :
> Transition 1 ----> Activity A ----> Transition 3 ---> Activity B ---->
> Transition
>
> My code is like this :
> Rule Split {
> from
> s : Xpdl!Activity (....... test.....)
> to t : Xpdl!Activity ( -- Activity A ?
> transitionsFrom <- t2 -- => redefine transitionTo
> ),
> t1 : Xpdl!Activity ( -- ActivityB ?
> transitionsFrom <- s.transitionsFrom, -- t2
> transitionsTo <- t2 -- s.transitionTo
> ),
> t2 : Xpdl!Transition ()-- new transition => set at least one attribute
> }
>
> When I execute this transformation i have this error :
> org.eclipse.m2m.atl.engine.emfvm.VMException: Cannot create XPDL!Transition
>
> Can somebody help me please ?
> )


--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: [ATL] Refining Mode : Cannot create [message #642650 is a reply to message #642492] Thu, 02 December 2010 08:22 Go to previous message
stef is currently offline stefFriend
Messages: 12
Registered: September 2010
Junior Member
If i execute this, it' ok....

> Rule Split {
> from
> s : Xpdl!Activity (....... test.....)
> to t : Xpdl!Activity ( -- Activity A ?
> transitionsFrom <- OclUndefined -- (just for exemple)
> )

[Updated on: Thu, 02 December 2010 08:22]

Report message to a moderator

Previous Topic:[ATL] Question about Rule Inheritance
Next Topic:[ATL] Question about Called and Unique Lazy Rules
Goto Forum:
  


Current Time: Fri Apr 26 13:35:42 GMT 2024

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

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

Back to the top