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

Pages: 1 2 3 [4] 5 6 ... 8
46
Thank you, Geert.

But do you know how did he manage to export an ERD (with relationships ) from Django-extensions? Also, the image he extracted from Django shows relationships.

When I noticed no relations in the Python code and asked the developed, he said "look for models.forignkey"

Any advice would be appreciated.

Thank you,
Mo

47
I have very little knowledge of Python. I just got this code from another team member and tried to import it to EA.

It was successfully imported (as a Python code) but with no relationships on the class diagram created by EA as I indicated earlier

When I told the developer that there are no relationships shown in EA, he exported this ERD from Django-extensions (and it shows relationships)

https://ibb.co/NSV9zYc

He also shared the below code of the ERD (as a .dott file) but I could not import this .dot file to EA

Code: [Select]
digraph model_graph {
  // Dotfile by Django-Extensions graph_models
  // Created: 2021-01-08 07:36
  // Cli Options: -a
  fontname = "Roboto"
  fontsize = 8
  splines  = true
  node [
    fontname = "Roboto"
    fontsize = 8
    shape = "plaintext"
  ]
  edge [
    fontname = "Roboto"
    fontsize = 8
  ]
  // Labels
  django_contrib_admin_models_LogEntry [label=<
    <TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
    <TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
    <FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
    LogEntry
    </B></FONT></TD></TR>
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>id</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>AutoField</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><B>content_type</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><B>ForeignKey (id)</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>user</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>ForeignKey (id)</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">action_flag</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">PositiveSmallIntegerField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">action_time</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">DateTimeField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto">change_message</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto">TextField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto">object_id</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto">TextField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">object_repr</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
    </TABLE>
    >]
  django_contrib_auth_models_AbstractUser [label=<
    <TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
    <TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
    <FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
    AbstractUser<BR/>&lt;<FONT FACE="Roboto"><I>AbstractBaseUser,PermissionsMixin</I></FONT>&gt;
    </B></FONT></TD></TR>
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">date_joined</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">DateTimeField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto">email</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto">EmailField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto">first_name</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">is_active</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">BooleanField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">is_staff</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">BooleanField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>is_superuser</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>BooleanField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>last_login</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>DateTimeField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto">last_name</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>password</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>CharField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">username</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
    </TABLE>
    >]
  django_contrib_auth_models_Permission [label=<
    <TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
    <TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
    <FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
    Permission
    </B></FONT></TD></TR>
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>id</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>AutoField</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>content_type</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>ForeignKey (id)</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">codename</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">name</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
    </TABLE>
    >]
  django_contrib_auth_models_Group [label=<
    <TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
    <TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
    <FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
    Group
    </B></FONT></TD></TR>
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>id</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>AutoField</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto">name</FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto">CharField</FONT>
    </TD></TR>
 
 
    </TABLE>
    >]
  django_contrib_auth_models_User [label=<
    <TABLE BGCOLOR="white" BORDER="1" CELLBORDER="0" CELLSPACING="0">
    <TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#1b563f">
    <FONT FACE="Roboto" COLOR="white" POINT-SIZE="10"><B>
    User<BR/>&lt;<FONT FACE="Roboto"><I>AbstractUser</I></FONT>&gt;
    </B></FONT></TD></TR>
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><B>id</B></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><B>AutoField</B></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>date_joined</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>DateTimeField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>email</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>EmailField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>first_name</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT COLOR="#7B7B7B" FACE="Roboto"><I>CharField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>is_active</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>BooleanField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>is_staff</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>BooleanField</I></FONT>
    </TD></TR>
 
 
 
    <TR><TD ALIGN="LEFT" BORDER="0">
    <FONT FACE="Roboto"><I>is_superuser</I></FONT>
    </TD><TD ALIGN="LEFT">
    <FONT FACE="Roboto"><I>BooleanField</I></FONT>
    </TD><...

48
Hello, Eve,

Thank you for your response.

I understood from your response that the PostgreSQL ODBC driver needs to be configured to use an SSH connection. Correct?

Thank you,
Mo

49
Thank you, Geert and q. for your responses.

Is this a problem from EA's side or something missing in the code?

Is there a way to fix that?

Thank you,
Mo

50
Hello, EA Experts,

I imported this Python code
https://ibb.co/RQrJRLb

To get these classes on a diagram but without relationships shown
https://ibb.co/C9H2LHX

When I transformed the model to DDL, I still do not see relationships
https://ibb.co/mBv3zgt

I checked the diagram properties and I confirmed that "Show Relationships" is checked
https://ibb.co/M14VSnL

What should I do to show the relationships?

Thank you,
Mo


51
Automation Interface, Add-Ins and Tools / Connect EA to AWS through SSH
« on: January 09, 2021, 09:58:14 am »
Hello, EA Experts,

I was working with a developer from the team on connecting EA to AWS to better collaborate and save time by making updates to the database directly based on the updates I make in the EA model.

We reached a step that we could not pass, and I need your help, please.

We have a server hosted on AWS and PostgreSQL runs locally on the server. Is there a way to SSH to the server using a key rather than a user name and password?

https://ibb.co/rZ1pTtN

Thank you,
Mo

52
Thank you, Geerd for the link. I will go through it.

Kind Regards,
Mo

53
Thank you, Geert for the additional information.

I would appreciate that you clarify how can I define the stereotype in an MDG, and give them a metatype?

Thank you,
Mo

54
Hello, Geert,

I have a class diagram that includes different elements: classes, enumerations and data types.

The enumeration types are stereotyped as <<question>> and <<category>>

When I drag and drop the package that includes this diagram to the relationship matrix source and choose "enumeration" from the dropdown "Type", the source will show all enumeration elements regardless of their stereotype.

My question is whether there is a way to show only the enumeration items stereotyped as <<question>>?

Thank you,
Mo

55
Uml Process / Re: Display all used stereotypes in the project browser
« on: January 05, 2021, 08:39:56 am »
Thank you, q.

56
Uml Process / Re: Describe questionnaire algorithm in UML
« on: January 05, 2021, 04:37:55 am »
Thank you very much q., Geert, and Uffe for your feedback.

I really appreciate you, Uffe, taking the time to provide a detailed response.

I will work on fixing this.

Thank you all.
Mo

57
Thank you, Geert for your response.

So, it is not possible to do that if the stereotypes are defined in the standard UML perspective?

Mo

58
Uml Process / Relationship Matrix: show classes with specific stereotype
« on: January 04, 2021, 06:02:27 pm »
Hello, EA Experts,

Is there a way that I can show the classes (in a package) with a specific stereotype (stereotype ABC) rather than showing all the classes in that package when I drag it and drop it to the Source or Target?

Thank you,
Mo

59
Uml Process / Display all used stereotypes in the project browser
« on: January 04, 2021, 03:42:08 pm »
Hello, EA experts,

Is there a way to display all stereotypes (used in a model) in the project browser?

In Cameo EA, that option was possible and I could drag a stereotype from the project browser to an element to apply that stereotype to the element. Very easy and straight forward.

Is this feature available in EA?

Thank you,
Mo

60
Uml Process / Describe questionnaire algorithm in UML
« on: January 04, 2021, 10:14:52 am »
Hello, EA Experts,

I need your input on the right way to describe a questionnaire in UML. I am trying to model a questionnaire that includes multiple sections as below:

https://ibb.co/WP9CkJ5

Each section is modeled as a class and questions and answers are modeled as Enumeration (in case of multiple-choice questions) or Data Type (in case of free text questions) as below:

https://ibb.co/zJ7R4C1
https://ibb.co/S3g04nL

Is this the right way to do it?

I hope that I have not confused (I feel I might have done so) between modeling the questionnaire at the abstract level (the type of question and types of answers, multiple-choice vs free text) and modeling it at the object/instance level where I state the specific Questions and Answers in each section.

Thank you so much,
Mo


Pages: 1 2 3 [4] 5 6 ... 8