Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DanG83616 on June 18, 2013, 10:10:53 am
-
Is there an easy way to copy the behavioral elements of one model to the next? I'm looking for the equivalent of TRANSFORM_CURRENT() on the behavioral elements.
Thanks,
Dan
-
I've resorted to using tags to carry the behavioral information forward. This approach works okay since I don't use the built-in code gen support for state machines.
Thanks anyway,
Dan
-
A couple of notes on this:
1. The only tag I needed was "TransformedFromGUID". The downstream transform uses the GUID to EASL_INIT() to start accessing the behavioral info. Perhaps there is a way to get the "transformed-from" GUID w/o a tag, but I couldn't find it.
2. When you change the behavioral model then run a transform and subsequently change the behavioral model, you must restart EA before re-transforming. The EASL doesn't seem to synchronize each time you run the transform. Ironically, EA has a defect in it's behavioral model of how to work with behavioral models.
Cheers,
Dan