Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DanG83616 on June 18, 2013, 10:10:53 am

Title: TRANSFORM_CURRENT for Behavioral Elements
Post 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
Title: Re: TRANSFORM_CURRENT for Behavioral Elements
Post by: DanG83616 on June 19, 2013, 01:45:20 am
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
Title: Re: TRANSFORM_CURRENT for Behavioral Elements
Post by: DanG83616 on June 22, 2013, 03:08:38 am
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