Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jeff Hegedus on December 12, 2015, 05:50:06 am
-
The default code templates have the following in them (jus a snipit - not the whole template) for the "Action Create" template
$result = %EASL_GET("Property", $GUID, "Pin", "Result")%
%if $result == ""%
/*Warning: $sActionName - Result Pin Not Found!*/
%endTemplate%
I have added a Create Object Action to the model and added an ActionPin named "Result". When I generate the code, I get this warning generated, so it isn't finding my "Result" pin. Has anyone used this? Is the code wrong or is it looking for something other than an action pin?
Thanks in advance for any help.
-
I've figured out what the problem is through luck. The line that uses the EASL_GET macro ("$result = %EASL_GET("Property", $GUID, "Pin", "Result")%") actually gets the value from an action pin named "result" (note the lower case r) instead of "Result". I'm not sure if this is consistent across all EASL_GET requests or if it is special for "result".