ATL Transformation Rule [message #1699317] |
Tue, 23 June 2015 11:10 |
Mohammed Fouad 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
|
|
|
Powered by
FUDForum. Page generated in 0.02553 seconds