Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Thomas Arnbjerg

Pages: 1 2 [3] 4
31
Hi all,

When I'm debugging a javascript script containing the following fragment the variable 'traceElement' is reported as 'undefined' at the first line containing 'traceElement.'. Any suggestions?
..
if (currentRequirement.Type == "Requirement"){
   Session.Output( "Found link between " + currentUseCase.Alias + " to " + currentRequirement.Alias );
   var traceElement as EA.Element;               
   traceElement = tracePackage.Elements.AddNew( currentUseCase.Alias + " to " + currentRequirement.Alias, "");
   traceElement.TaggedValues.AddNew("from", currentUseCase.Alias);
   traceElement.TaggedValues.AddNew("to", currentRequirement.Alias);
   traceElement.Update();
   tracePackage.Elements.Refresh();
}
..

32
General Board / 2 Linked document issues
« on: January 13, 2023, 07:44:42 pm »
Hi all,

How do I re-activate the display of the linked document template to use?

How do I re-activate display of the red 'A' on elements with a linked document?

br
Thomas

33
Bugs and Issues / MDA transformation explodes in memory usage
« on: December 09, 2022, 12:21:52 am »
Hi all,
We have an MDA transformation, which has suddenly caused EA to use extreme amounts of memory (>30 GB) and the transformation never completes. I have narrowed the problem down to 1 custom template (Class__xx). I've removed all calls to other templates (e.g. Connector__xx) with the list macro, but the problem persists.

Any suggestions?

The template is shown below:

%if elemType != "Component"%
%endTemplate%

%if classLanguage == "Java"%
Package
{
   %TRANSFORM_REFERENCE("MessagingClassesPackage","IMPLEMENTATION", "ONLY_ONE")%
   name = "datastructureclasses"

   Class
   {
      %TRANSFORM_REFERENCE("ComponentEventbusFacade",className,classGUID)%
      name=%qt%%className%Implementation%qt%
      notes=%qt%*** AUTOGENERATED - Do not modify by hand. ***
   This class implements the interface against the system for component '%className%'.%qt%
      Language="Java"
      stereotype="system_interface_implementation"
      Tag
      {
         name="application"
         value=%qt%%className%%qt%
      }
      
      Attribute
      {
         name="PROPERTYBAGNAME"
         default=%qt%%sl%%qt%propertyBagName%sl%%qt%%qt%
         type="String"
         Constant="true"
         
         
      }
      
      Attribute
      {
         name="COMMANDID"
         default=%qt%%sl%%qt%commandId%sl%%qt%%qt%
         type="String"
         Constant="true"
         
         
      }
            
      Attribute
      {
         Name = "communicationMap"
         Type="Map<String, ISocketChannel>"
      }
      
      Attribute
      {
         Name = "logger"
         Type="Logger"
      }
      Operation
      {
         Name = "handleMessage"
         Type="void"
         Scope="public"
         Parameter
         {
            Name="_message"
            Type="IMessage"
         }   

         Code=%qt%
try
{
   PropertyBagMessage pbMessage = (PropertyBagMessage)_message;
   Map<String, Object> propertyBag = pbMessage.getPropertyMap();   
      
   return;
}
catch(Exception e)
{
   logger.error(String.format(%sl%%qt%Exception caught: %s  Stack trace:%s%sl%%qt%, e.getMessage(), e.getStackTrace()));
   throw e;
}

      
               %qt%
      }
      
      Header=%qt%
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import dk.medtrace.util.socket.data.PropertyBagMessage;
import dk.medtrace.util.socket.interfaces.ISocketChannel;
import dk.medtrace.util.socket.impl.SocketFactoryImpl;
import dk.medtrace.util.socket.interfaces.IMessage;
import dk.medtrace.util.autogenerated.framework.ESocketChannel;
import dk.medtrace.util.autogenerated.framework.ComponentSocketChannels;
import java.util.*;

%qt%      
   }

   Realisation
   {
      %TRANSFORM_REFERENCE("FacadeRealizesInterface",className,classGUID)%
      direction="Source->Destination"
         
      Source
      {
         %TRANSFORM_REFERENCE("ComponentEventbusFacade",className,classGUID)%
      }
      
      Target
      {
         %TRANSFORM_REFERENCE("ComponentInterfaceClass",className,classGUID)%
      }
   }
   
   Realisation
   {
      %TRANSFORM_REFERENCE("FacadeRealizesIMessageHandler",className,classGUID)%
      direction="Source->Destination"
         
      Source
      {
         %TRANSFORM_REFERENCE("ComponentEventbusFacade",className,classGUID)%
      }
      
      Target
      {
         GUID="{115E54AE-749C-4552-92D2-C8BDF85BD460}"
      }
   }   
}
%endIf%

34
General Board / PostgreSQL DBMS
« on: October 26, 2022, 01:36:39 am »
I'm trying to configure a PostgreSQL repository.

1) 32 bit ODBC driver is installed (version 13.x)
2) ODBC datasource configured according to https://sparxsystems.com/enterprise_architect_user_guide/15.2/model_repositories/setupapostgresqlodbcdriver.html
Test connection succeeds.
3) The PostgreSQL database has been created on a remote Debian 11 and EASchema*.sql has been run. The tables are present in the database as seen in pgAdmin running on the same machine as EA. A user has been created for EA and permissions on all EA tables look correct in pgAdmin.

When I try to transfer an eapx file to the new repository i get the error 'All Enterprise architect tables in the target repository are missing...'

Any suggestions on how to troubleshoot this?
Thx
Thomas

35
Bugs and Issues / Excessive template parameters on generated code.
« on: September 16, 2022, 04:59:08 pm »
Hi,
we have the following construct in java - source:
public class Class1 extends AbstractClass2<EnumType1, EnumType2> implements  Interface1

In Ea this is modeled with 2 classes and 1 interface (without template arguments). The generalization connector between Class1 and Abstract Class2 has to template bindings identifying EnumType1 and EnumType2 for the template arguments for AbstractClass2.

When the code is generated from EA the result is:
public class Class1 extends AbstractClass2<EnumType1, EnumType2> implements  Interface1<EnumType1, EnumType2>

- i.e. the implementation of Interface1 also gets the template arguments.

Any suggestions?

br
Thomas

36
Hi all,
Does anyone know how to avoid the timestamps in the comment headers for generated operations (in my case Java: * @created 25-Apr-2022 13.49.25)?

br
Thomas

37
Hi all,
The templates 'Class__InitializeComponentSocketMaps' and 'Class__PopulateSocketChannels' are never called in the fragment below. If I write 'foobar' immediately before 'Class__InitializeComponentSocketMaps' it is present in the debug log. The names are correct. Any ideas?

Package
{
   %TRANSFORM_REFERENCE("SharedPackage",packageName,packageGUID)%
   name="shared"
   notes="*** AUTOGENERATED - DO NOT MODIFY"
%if packagePath == ""%

%list="Namespace" @separator="\n"%
%list="Class__ComponentPackages" @separator="\n"%
%list="Class__CallbackInterfaceDeclarations" @separator="\n" @indent="  "%
%list="Class__InterfaceClassArguments" @separator="\n" @indent="  "%
%list="Class__InterfaceImplementations" @separator="\n" @indent="  "%

$initSocketMaps = %list="Class__InitializeComponentSocketMaps" @separator="\n" @indent=" "%
$socketChannels = %list="Class__PopulateSocketChannels" @separator="\n" @indent="  "%

br
Thomas

38
Automation Interface, Add-Ins and Tools / 'PROCESS_END_OBJECT' macro
« on: April 06, 2022, 08:32:23 pm »
Hi all,

Can anyone explain when the 'PROCESS_END_OBJECT'-macro should be used?

br
Thomas

39
General Board / How do I select metric units for page setup?
« on: September 03, 2020, 02:19:41 am »
Where is the units used configured?

40
Bugs and Issues / DAO error 3049 when opening Design Master project
« on: August 14, 2020, 02:43:38 am »
We have converted a regular EA 15.1 project to a design master from which each team member creates replicas.
Suddenly 2 out of 3 team members get the error DAO.Database [3049] 'Cannot open database #Temporary QueryDef#'

The one team member still able to open the master transferred it to a new project - and everybody could open it again.

When we converted it to a design master the same two persons got error 3049 again.

Any ideas?

41
Bugs and Issues / Unwanted/mysterious includes in c++ code generation
« on: June 21, 2017, 06:38:05 pm »
Hi all,

I'm struggling with an EA code generation problem, which drives me nuts. For some reason the code generated by EA13 includes extra include files in the implementation and I simply cannot see where they come from:

1) They are not in the field 'Header(s)' in the code generation dialog (in the code generated the extra headers are added after contents of this field so the source must come after %ImportSectionImpl%).
2) They are not in the code generation templates - If I insert a trace comment  at the end of the field 'Header(s)' in code generation and immediately after %ImportSectionImpl% in template 'File Impl'  the extra headers are BETWEEN the two comments!!

Any suggestions?

42
How do you create an MDA transformation where the property 'Suppress Namespace' is activated (similar to the package context menu 'Code Engineering->Suppress Namespace').
Is it a Tag or attribute on a package element or something else?

43
Bugs and Issues / Generated code with windows style include paths
« on: May 30, 2017, 01:24:25 am »
Hi there,
I'm code generating from windows into a share Linux folder. Unfortunately EA insists on adding windows style paths to my includes similar to:

#include "EventbusModel\src\autogenerated\DataStructureClasses\DeviceConfigurationImplementation.h"

Three questions:
1) The include path is generated by EA automatically. Can I get rid of that behaviour (it causes a lot of problems)
2) Second best option is to get rid of the folders - I only want to include "DeviceConfigurationImplementation.h". Is that possible?
2) Third best option: Can I at least specify a forward slash?

Thx
Thomas

44
Hi there,
3 questions:

Does any of you have a suggestion on how to track changes to code generation templates and MDA transformation templates?

Ideally a version number attached to these templates is somehow correlated to code generated so that it is possible to track the versions of MDA/Code generation templates used to create a given version of an application.

Is there a way to preventing everyone from changing these templates?

Is there a way to export/import these templates from the command line?

br
Thomas

45
Bugs and Issues / Windows 10 issues
« on: January 08, 2017, 11:56:26 pm »
Hi all
I'm using Windows 10 and EA 11 for some time without problems. Suddenly whenever I open a diagram EA crashes. Has anyone experienced something similar? - and is there a workaround? I've tried compatibility mode to no avail.

Pages: 1 2 [3] 4