Hi, So far I've made changes in place in the DslTransformation.ext, because I didn't realize that one can use AOP on those files. I looked at the post here for an example:
http://www.nabble.com/-Sculptor--how-to-control-surrogate-key-name-td18625411s17564.html#a18645888 Something's not right in my advice file though. I get a screen full of errors for every setXYZ() call. I also tried running the changes anyway. My file is picked up and there are no errors during generation, but at least one of my values was not set correctly during the transformation. Here is my what my code looks like: import sculptordsl; extension org::openarchitectureware::xtext::registry::Modelloader reexport; extension org::fornax::cartridges::sculptor::dsl::Extensions; extension extensions::helper; /** * Add extra fields to Entity. Get values from Dsl object. */ around transformation::DslTranformation::transform(DslEntity domainObject) : ctx.proceed() -> setA(domainObject.a) -> setB(domainObject.b) -> setC(domainObject.c) -> setD(domainObject.d) -> constants.addAll(domainObject.constants.transform()); ... /** * Define Constant. Get values from Dsl object. */ create sculptormetamodel::Constant this transform(DslConstant constant) : setDoc(constant.doc) -> setName(constant.name) -> setValue(constant.value) -> (constant.valueRef != null ? setValueRef(constant.valueRef.transform()) : null ); How should one be using AOP on this transformation file? Thanks! --Polly -- View this message in context: http://www.nabble.com/-Sculptor--Using-AOP-on-DslTransformation.ext-tp18968553s17564p18968553.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
