General (#1) - source_target confusion (#32) - Message List

source_target confusion
 unsolved

I've faced a weired problem with the following transformation:

transformation pim_to_apsm (pimmm:pim, apsmmm:apsm) {
	top relation PIMToPSM
	{
		pn:String;
		cn:String;
		checkonly domain pimmm pimModel:pim::PIMModel {
			name=pn,
			usecasesPackage=ucp:pim::PPackage{}
		};
		enforce domain apsmmm psmModel:apsm::APSMModel {
			name=pn,
			behaviorPackage=bp:apsm::APackage{}
		};
		where {
			UseCasePackage_To_BehaviorPackage(ucp, bp);
		}
	}
	relation UseCasePackage_To_BehaviorPackage {
		pn:String;
		checkonly domain pimmm ucp:pim::PPackage {name=pn};
		enforce domain apsmmm bp:apsm::APackage {name=pn};
	}
}

Not only the target is not generated properly but also the source becomes empty! Am I using the wrong QVT?

  • Message #97

    At first glance, the transformation looks right. May be you can post the pseudo code for both relations (pseudo code is described in the help)?

Attachments

No attachments created.