How to mix in model elements in refining mode [message #986182] |
Mon, 19 November 2012 11:01 |
|
I have a simple UML model with some predefined types and would like to reverse engineer a DTD and link it to these types. I have a regular transformation that transforms the DTD structure to UML, but get hung up on linking the two.
I am aware that this requires a refining transform, but it seems that the refining transform does not trigger on multiple source models. In the example below, the File2Package rule is never called. I have seen the example for the model augmentation, but it seems somewhat clumsy in syntactic terms.
Am I missing something or can the basic rule construct as shown not be used? If so, why? If it can, can someone please point me to an example?
-- @atlcompiler atl2010
-- @nsURI UML=http://jgsuess.net/uml14
-- @nsURI DTD=DTD.xmi
module transform;
create OUT: UML refining IN: UML, dtd: DTD;
rule File2Package {
from
f: DTD!DTDFile
to
p: UML!Package
}
|
|
|
|
Re: How to mix in model elements in refining mode [message #986187 is a reply to message #986185] |
Mon, 19 November 2012 11:19 |
|
Hi, I have attempted to insert your snippet and it comes up with a syntax error on the comma after . Apart from that could you please define Quote:the input element for me? Does this mean that the rule will only ever match on model elements on , and all other models are never declaratively matched and can only be drawn in by navigation?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03225 seconds