| [Epsilon] Epsilon does not find a type [message #1689123] |
Sun, 22 March 2015 15:56  |
Eclipse User |
|
|
|
I am trying to run the launch but the following error message is generated:
Type 'US! UsElement' not found
at (...us2star.etl@2: 20-2: 32)
I would like to transform the model us into star
-----------------------------------------------------------------------------------
us2star.etl:
rule Role2Actor
transform roleIn : US!UsElement
to actorOut : IstarModel!IstarCompartment {
actorOut.name = roleIn.description;
actorOut.type = roleIn.type.transformInRoleToOutActor();
}
operation String transformInRoleToOutActor() {
if (self = 'ROLE') {
return Target!IStarCompartmentType#ACTOR;
} else {
throw 'Error';
}
}
-----------------------------------------------------------------------------------
modelTest.hutn:
@Spec {
metamodel "UsModel" {
nsUri: "UsModel"
}
}
package {
USNode "USNode1" {
description: "node teste"
elements: UsElement "UsElement1" {
description: "Element teste"
type: ACTION
}
}
}
Too thanks for anyone who can help me
|
|
|
|
Powered by
FUDForum. Page generated in 0.02564 seconds