Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL Transformation Rule (Rule Problem )
ATL Transformation Rule [message #1699317] Tue, 23 June 2015 11:10
Mohammed Fouad is currently offline Mohammed FouadFriend
Messages: 2
Registered: June 2015
Junior Member
Hi ,
I'm trying to make an ATL transformation rule .
the rule is divided into 2 parts, antecedent and consequence ( when , then )
I want to find as a result all the consequences.
the problem is that it displays only the last consequence.

rule UIMLPropertyFromDrools{
drlDoc : DroolsMM!DocumentRoot

property : UIML!PropertyType(),
property1 : UIML!PropertyType()
'ergonomic rule Platform'.println();
for (x in DroolsMM!Rules.allInstances()){
for (y in x.whenRules) {
if (y.TypeContext.toString()='Platform') { <- 'Ergonomic Rule For Platform';
property. property <- property1;

for (z in x.thenRules) {<-z; <- z.Criteria;
property1.value <-z.Value;
the console :

ergonomic rule Platform
Cannot set feature property to value ( 3 times ) the number of the consequences .

org.eclipse.emf.ecore.impl.DynamicEObjectImpl@61a7d16c (eClass: org.eclipse.emf.ecore.impl.EClassImpl@281b8862 (name: Consequence) (instanceClassName: null) (abstract: false, interface: false)), inter-model references are forbidden. Configure launching options to allow them.

Please help !!

[Updated on: Wed, 24 June 2015 23:06]

Report message to a moderator

Previous Topic:[ATL] How programmatically know name and referenceModelName in ATL transformations
Next Topic:Launch UML2OWL on Mars
Goto Forum:

Current Time: Mon Mar 19 11:07:03 GMT 2018

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

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