Skip to main content


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{
from
drlDoc : DroolsMM!DocumentRoot

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

for (z in x.thenRules) {

property1.property<-z;
property1.name <- z.Criteria;
property1.value <-z.Value;
}}}
}
}}
******
the console :

ergonomic rule Platform
rule
rule
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 !!
Thanks

[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: Thu Apr 25 11:48:16 GMT 2024

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

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

Back to the top