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.


Messages - Greenbolt

Pages: [1]
1
Automation Interface, Add-Ins and Tools / C++ and EA.TLB
« on: July 10, 2021, 12:01:11 pm »
Hey Everyone!

EA Version: 15.2

I hope everyone is doing well. I have a question regarding the EA.tlb file. I am using QtCreator with MingW-8 right now. When I generate some .cpp and .h code from the TLB I get a lot of "must use 'enum' tag to refer to type 'ObjectType'" in this scope. Is that a known issue, or am I doing something wrong in the generation of the code from the TLB? I tried using dumpcpp with and without --nometaobject and I tried using some flag for QMake. Is this the wrong approach? Or should only VisualStudio be used for doing COM applications?

2
DMN is Decision Model and Notation. This is a quote from Wikipedia:
Quote
It is a standard approach for describing and modeling repeatable decisions within organizations to ensure that decision models are interchangeable across organizations

Basically I would like to read out the decision in my Element and do something with it with the help of the Automation API.
This code is a Javascript example:
Code: [Select]

selectedObjects = currentDiagram.SelectedObjects;

if ( selectedObjects.Count > 0 )
{
var element as EA.Element;
var dO as EA.DiagramObject;
dO = selectedObjects.GetAt(0);
element = Repository.GetElementByID(dO.ElementID);
Session.Output("Decision Table: " + element.GetDecisionTable());
Session.Output("Bus Rules: " + element.GetBusinessRules() );
}
The output for GetDecisionTable and GetBusinessRules is both empty.

3
Good afternoon everyone,

I am testing around with DMN tables and the Automation API. I created a Diagram, added a Decision Table and added DMN Expressions into the Table and successfully validated the expressions.
Now, when I'm running some Javascript or Java on that Element inside the table and want to print out the DMN Expression I get no output. I'm using the "getDecisionTable()" function in the Element class. Is that the wrong approach or is there something else missing to get the DMN Expression returned?


4
Automation Interface, Add-Ins and Tools / V15 Scripts do not run
« on: October 22, 2019, 12:09:01 am »
Good morning everyone,

I removed V14 and installed V15 and since then I can not execute scripts anymore. Does anyone have any suggestion as to why that could be happening? This happened only with V15 so far and when I downgrade to V14, scripts execute just fine.

5
Automation Interface, Add-Ins and Tools / Re: Element and Diagrams
« on: October 04, 2019, 11:54:45 pm »
Awesome, I will look into the Repository SQLQuery. Thanks a lot!

6
Automation Interface, Add-Ins and Tools / Element and Diagrams
« on: October 04, 2019, 11:49:16 pm »
Hi everyone,

I am writing something with the EA API in Java. I was wondering, when having an Element, if it is possible to find one or more DiagramID, where that Element is part of.

Pages: [1]