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 - bknoth2

Pages: [1] 2
1
General Board / EA Code Generation and a git-based workflow?
« on: August 31, 2018, 09:34:35 am »
Code generation and git-based workflows

I am defining a class structure and round-tripping code (EA to C++ to EA, as needed). The code is maintained in git. Git lends itself to branch-based development, meaning that different branches in the git repository are used to develop specific features. Does anyone have a good process for keeping a model in synch with code on several git branches?

Thanks

2
The title is not a typo.

1) Open a sequence diagram
2) Right click a connector that designates a message. Select properties
3) A "Connector Properties" dialog opens which has two tabs at the bottom ("Connector Properties" and "Connector Notes")
4) If you don't see a "Notes" window at the bottom of the "Connector Properties" tab, drag the bottom of the dialog down to expand the view and review the (stealth) notes field below the "control flow type" box

Now there is a "Notes" box visible on the properties tab and there is an entire notes box on the "Connector Notes" tab. What is the difference? I know they are different because notes typed into the window on the properties tab show up on the diagram if sequence notes are visible but "connector notes" don't.

Given that, at least on my system, the "Connector Properties" opens in a way that hides the notes window at the bottom (see step 4) above) it took me an hour over two days to figure out why my notes don't show up on the diagram (which I was typing in through the "Connector Notes" tab) but notes entered through V13.5 do. To make it worse, notes entered through V13.5 seem to show up in both notes fields (the one on the notes tab and the one revealed by step 4) above) but notes entered through V14's "Connector Notes" tab don't show up on the diagram but those entered through the properties tab do.

3
Three of us are using EA13.5 with a Postgres database. I'm considering running phasing in version 14, so we'd have 13.5 and 14 using the same DB. Is anyone doing that? Any problems?

Thanks

4
I tried installing V14 on two machines with V13.5 on them and V14 overwrote V13.5 both time. It seems like others have installed both on the same machine. Is it possible? Did I miss an option during installation? (Win 10 platform)

Thanks

5
General Board / EAUML Information?
« on: April 28, 2018, 01:49:41 am »
I'm using EAREQ which seems to be part of EAUML. I can't find any documentation on EAUML or EAREQ. I'd like to understand it better. Is there any information anywhere?

Thanks
Bruce

6
I'd like to disable and enable auditing through a script (as a workaround for an EA bug that prevents transferring a project through a script when auditing is enabled). Is there an interface for enabling and disabling auditing? I found the ClearAuditLogs() method in the repository class, but I can't find anything about turning auditing on and off.

Thanks
Bruce

7
I have a script that backs up my PostGres-hosted EA repo. It has been completely reliable until it started reporting through a message box:
    "An error has occurred: Encountered an improper argument. Press OK to continue the table upgrade..." which I have to cancel out of.

The log file reports:
    (after messages about removing data)...  Copying project information for: t_xref   ERROR: *** t_xref - record no: 1

The problem may have started after I installed and then removed the Version 14 Beta. I did not open the Postgres-hosted model with the Beta, I installed the Beta, opened an unrelated .EAP file, and then uninstalled the Beta and reinstalled EA version 13.5 (build 1352). I've tried uninstalling and reinstalling EA and I even ran EA.exe /unregister and then /register.

I can do a manual backup just fine (create an empty project and transfer the DBMS model to the empty .EAP file using Configure/Transfer/Project Transer

Relevant lines of my script are:
   dim repository
   dim projectInterface
   set repository = GetObject(, "EA.App").Repository

   set projectInterface = repository.GetProjectInterface()

   projectInterface.ProjectTransfer eapString, TargetFilePath, LogFilePath

Any ideas?

Thanks

8
I have an interaction occurrence that references a diagram in a another package. I'd like to insert that diagram in an auto-generated document along with the interaction occurrence.  Is there a way to do that? (I've tried using embedded elements, child elements, etc to no avail).

FYI: Here's a link to the interaction occurrence definition:
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/model_domains/interactionoccurrence.html

9
Any seasoned STM_C++ users out there?

We have an extensive, three-level state machine and we've generated the code for it using the STM_C++ template. I'm surprised about the generated code in some ways. Loosely speaking, the state machine is implemented in one large loop and every time it goes around the loop it checks for transition conditions. When it enters a state it calls the onEntry() behavior as expected, then exits that and calls the Do() behavior. Once it exits the Do() behavior it goes around the loop but won't enter the Do() behavior again. That means that the the code for the Do() behavior has to sit in a tight loop if it is doing something that takes time, which then means the rest of the state machine can't execute (and check triggers, for example).

We've been working with the templates a lot to try to get the behavior we want (keep calling Do() until a state transition happens), but we're not fully successful yet.

I'd like to know what experiences others have had or if there are recommendations.

Thanks
Bruce

10
General Board / Do template selectors support SysML blocks?
« on: March 09, 2018, 11:46:20 am »
I've tried these lines in a template selector (one at a time) and they don't seem to map a document fragment to a SysML block. Any insights?

Block:block:My Block Fragment
or
Block::My Block Fragment

Thanks

11
When I transfer a file through the menu system (Configure/Transfer/Project Transfer - DBMS to File) the resulting .EAP file is about 56MB. When I use the script below, the .EAP file is about 12 MB. Any idea what the difference is?

Thanks

(I left out the strings that define paths. Here's the critical part of the script):

     dim eapString
   eapString = "EAConnectString:BARDA EA DB --- DBType=4;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA DB"
   
   dim repository
   dim projectInterface
'   set repository = CreateObject("EA.Repository")
   set repository = GetObject(, "EA.App").Repository

   'get project interface
   set projectInterface = repository.GetProjectInterface()

   projectInterface.ProjectTransfer eapString, TargetFilePath, LogFilePath

end sub

main

12
General Board / SQL-based report on package info coming up empty
« on: February 01, 2018, 05:11:48 am »
EA Version 13.5.1352

1) I use an SQL search to find a package by name. I know the search works - I can right click a returned package and the "Find in browser" feature is highlighted and works.
2) I have a document template that reports the package name and notes. I can generate that document directly from a package (by right-clicking the browser) and the contents are correct in the generated report.

When I create a "Model Document" and specify the search and name from 1) above and the template from 2) and then generate the report, the report comes up empty. The package name and notes don't appear. (If I include elements and the element names, I see a correct list of element names in the report so I know the report receives the package information but no package information appears). Any ideas?

Thanks
Bruce

13
General Board / C++ State Machine Code Generation Example?
« on: December 19, 2017, 03:42:21 pm »
I'm trying to generate C++ code from a state machine. I don't know how to set up triggers with events and guards so that generated code will compile. Is there an example around (or really clear documentation)?

I'm using the system engineering version (13.5).

Thanks for any help

Bruce


14
General Board / Postgres-related crashing. ODBC Keep Alive?
« on: December 15, 2017, 09:38:55 am »
I just started using Postgres (9.03 32 bit ODBC driver) with EA (13.5.1351) on Win 10. EA seems to crash if I stop working with a model for a while. (EA crashes - I'm guessing that it has to do with lack of activity). I did not have this problem when working with the same model in an EAP file.

It's as if there's a timeout somewhere, maybe in the ODBC connection? Any thoughts or insights?

Thanks

15
General Board / How to report trace relationships for state transitions?
« on: November 04, 2017, 03:23:48 am »
I have a state transition from State1 to State2 (Call it Transition1). I attach a trace from Transition1 to Artifact1. How do I generate a report or an SQL query that lists that trace relationship? (I know how to do it when I trace from a State element, but not from a state transition).

Thanks
Bruce

Pages: [1] 2