Book a Demo

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 - Stephane B

Pages: [1]
1
Suggestions and Requests / Tabs in MDA Transform exports
« on: May 21, 2013, 07:42:32 pm »
Hello,

I noticed that tabs in model transformation templates are not escaped to "	" while exporting to xml.
This is sad because when I parse the XML (so as to extract the templates to individual text files), all the tabs are changed to spaces*

That would be nice to fix that in future versions.

Thanks,
Stéphane

*according to the W3C specification : http://www.w3.org/TR/2006/REC-xml-20060816/#AVNormalize

2
General Board / Error while generating DDL : Database not defined
« on: July 15, 2013, 06:35:44 pm »
Hi everyone,

I'm trying to generate DDL from a data model, but I get an error pop-up saying "myclass: Database not defined". What am I doing wrong?

I understood that it normally happens when there is no target database defined in Tools > Options > Code Editors > Default database. I tried with several (PostgreSQL, MySQL...) with no success.

In the same file, I have a data model that generates the DDL fine, and a data model with which the error occurs. I checked the same options in both. I noticed that in the data model that doesn't work, the checkbox "IF EXISTS" next to "Create Drop SQL" is missing. Any clue ?

I'm using EA 9.0

Thanks for your help.


3
General Board / Tagged Value Note in Intermediary Language
« on: April 26, 2013, 08:47:26 pm »
Hello all,

In Model Transformation, I'm trying to create an element that has a note attached to a tagged value. How am I supposed to write that in intermediary language ?

Some precisions :
-working with EA v9 (if relevant)
-I'm trying to generate a WSDL structure. If you look at a WSDL generated by EA, you will see that the XMLNS prefix-namespace associations are defined in a tagged value note. The note is attached to a tagged value which name is "xmlns" and which value is <memo>.

Thanks,
Stéphane


4
Bugs and Issues / CTF : "if" statements are case INsensitive
« on: August 09, 2013, 11:57:30 pm »
Hello,

I noticed that, in code templates and transformation templates, if statements are case insensitive.

Firstly, this is the opposite of what if written in the user guide :
Quote
If conditional statements on strings are case sensitive, "a String" does not equal "A STRING". Hence in some situations it is better to set the variable $str= TO_LOWER(variable) or TO_UPPER(variable) then compare to a specific case.

Secondly, IMHO equality tests should be case sensitive, because you can always simulate insensitivity with TO_LOWER, but not the other way around. And for my own use, I don't want the same behaviour for operations returning long and Long.

Is it a bug in EA10 or a wrongness in the user guide ?

Thanks for your answers,

Stéphane

5
Bugs and Issues / Toolbox diagram. "Save as profile" not showing
« on: July 18, 2013, 08:53:55 pm »
Hello,

I'm trying to create a toolbox ; I have a «profile» package and a class diagram under it.

Profile creation works fine, right clicking on the package, and "save package as UML profile".
I understood that in order to create a toolbox, and not a profile, one should right click on the diagram, not the package, and click "save as profile".

Problem is, in the diagram's context menu the "save as profile" command is not showing.

I've read this thread by Lars

 
Quote
Hi all,

in my EA 9.3 Ultimate I am creating a profile package to add it to an MDG technology. unfortunately the menu entry "Save package as UML profile" doesn't show up (which was the case in 8.0 before...

But I can't find any "View > Workspace and commands" dialog. I have View > Workspace Layouts... but nothing refering to commands there.

Must the diagram have any specific tag/stereotype/name that make this command appear ?

I'm using EA 9.0.906 Corporate Edition.

Thanks,

Stéphane

6
Bugs and Issues / Unexpected symbol: TemplateBinding
« on: May 29, 2013, 06:54:41 pm »
Hello,

I'm trying to perform a model transformation involving generics. But the connector type TemplateBinding appears to be unknown. I can't write a Parameter Substitution either.

Am doing something wrong or is it that the parameterized classes are not implemented in the Code Template Framework ?

Stéphane

7
Hi,
Is there a way not to generate diagrams in MDA Transformations?
When I transform a PIM into PSM (with templates I've written), I end up with a Package structure like:

Code: [Select]
- com
  |
  +- com (=empty class diagram)
  |
  +- my
     |
     +- my (=empty class diagram)
     |
     +- company
         |
         +- etc.

Is there a way (either in general options or in transformation templates) to get rid of these useless empty diagrams?

Thanks,
Stephane

8
How are the operation parameter types handled by EA ?

I'm writing model transformation templates and I'd like to have :
    myOperation(param1:myClass1)
transformed into
    myTransformedOperation(param1:myTransformedClass1)

Problem is, I can't figure out how to get a handle on the param type. There doesn't seem to be a connector involved.
As far as I know, the param type is just described as
Parameter {
      ...
      type="myTransformedClass1"
      ...
}
in the Intermediary Language.
If I generate my transformed model like this, I can then check in the UI to understand what happens :
EA seems to be looking for a class named myTransformedClass1 anywhere in the project (goes upward in the model tree and stops at the first one it finds named accordingly).
How can I define precisely the parameter type, so as to have EA to point to the right class ? Is there a hidden Connector or a Classifier ?

Thanks in advance.

Stéphane

9
Hello to the community from a newcomer.

Short story:
What does "Error - Invalid parameter(s)" mean in the Manage Add-ins panel ?

Long story:
I know Java Add-ins are not supposed to be possible, but I didn't want to learn C# just for that purpose.
So I decided to use IKVM to build an COM visible .NET dll from java.

First I made a strongly-named build of IKVM and OpenJDK
Then I created a stub mscorlib.jar from the Windows mscorlib.dll.
Then I wrote the following Java class :

Code: [Select]
package mypkg;

import org.sparx.Repository;
import cli.System.Runtime.InteropServices.*;

@ClassInterfaceAttribute.Annotation(
                ClassInterfaceType.__Enum.AutoDual)
public class MyAddin {

      public String EA_Connect(Repository repository) {
            //this method might be mandatory
            return "";
      }
      
      public String hello(Repository repository) {
            return "hello world";
      }
}

The cli import comes from the mscorlib.jar
The annotation is meant to make the class COM visible.

Then I :
-exported to mypkg.jar
-transformed the EA eaapi.jar to dll with ikvmc (all dlls strongly named)
-transformed the mypkg.jar to dll with ikvmc, using both eaapi.dll and mscorlib.dll as dependencies.
-registered my dll with regasm /codebase mypkg.dll
-created a key in the registry for EAAddins with value mypkg.MyAddin

Result : in the EA Manage Add-ins panel my Add-in is seen, no more "Error - Missing" message, but instead an "Error - Invalid parameter(s)"

So my questions are :
-Has anyone tried it ? (succeded?)
-What does this error mean ? Is it a problem with the dll, with the package, the class or method ?
-Do I need to implement particular methods in my class ? Is the EA_Connect needed ? Should I put a default constructor ?
-Has this method any chance to ever work ? If no, why ?
-What is the right signature for a method to be called via EXEC_ADD_IN ?

By the way, I'm using EA 9.0.906. Company choice. Could get an EA10 trial version to test it...

Thanks.

Stéphane

Pages: [1]