Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include MetaData in UML Diagram Generator to track metadata against an entity to allow for grouping of entities? #111

Closed
mattritchie opened this issue Aug 31, 2024 · 1 comment
Assignees
Labels

Comments

@mattritchie
Copy link

Hi!
Love your tool!

I'm finding that I'm generating diagrams and then manually sorting them via the plantuml syntax and I'm getting tired of redoing this work.

This is an example

package MainEntities{
   entity Contact 
}
package SupportingEntities{
   entity ConsultationRecord
}

I have just noticed that the plantuml now contains the xml metadata allowing users to reload the plantuml in the tool. I'm hoping it would be a good place to store this metadata as there is no way that I can see to extend dataverse with this information.

Thanks!

@rappen rappen added the UDG label Oct 13, 2024
@rappen
Copy link
Owner

rappen commented Oct 13, 2024

Thanks - good idea!
I'll try to implement it, and I hope the result will look something like this:

image

Sample code behind:

/'*********************************************************************
Created by : UML Diagram Generator 1.2023.12.1 for XrmToolBox
Author     : Jonas Rapp https://jonasr.app/
GitHub     : https://github.com/rappen/LCG-UDG/
Source Org : https://jonasspace.crm4.dynamics.com
Filename   : C:\Dev\tmp\Space Model.plantuml
Created    : 2024-10-13 11:31:09
*********************************************************************'/

@startuml My Rapp Space

hide circle
hide stereotype

skinparam linetype ortho
skinparam RoundCorner 5
skinparam Padding 1
skinparam ArrowFontSize 12
skinparam ClassBorderColor Black
skinparam ClassBorderColor<<custom>> Blue

title My Rapp Space Entity Model

footer Generated %date("yyyy-MM-dd") by UML Diagram Generator 1.2023.12.1 for XrmToolBox

package "Give them money to build more!" #Red
{
  entity Account <<standard>>
  {
      *AccountId (PK): Uniqueidentifier
      --
      *Name (PN): String
  }
}

package "Personal related" #LightGreen
{
  entity Contact <<standard>>
  {
      *ContactId (PK): Uniqueidentifier
      --
      FullName (PN): String
  }

  entity Mission <<custom>>
  {
      *MissionId (PK): Uniqueidentifier
      --
      +<color:blue>Name (PN)</color>: String
      *StateCode: State
      <color:blue>Account</color>: Lookup
      EMailAddress: String
      <color:blue>LandEarth</color>: DateTime
      <color:blue>Launch</color>: DateTime
      <color:blue>Link</color>: String
      <color:blue>MissionNo</color>: String
      MsftDataState: Picklist
      <color:blue>Rocket</color>: Lookup
      <color:blue>Sequence</color>: String
      StatusCode: Status
  }
}

entity Rocket <<custom>>
{
    *RocketId (PK): Uniqueidentifier
    --
    +<color:blue>Name (PN)</color>: String
    *StateCode: State
    <color:blue>Autonum</color>: String
    <color:blue>Description</color>: String
    <color:blue>Designer</color>: Lookup
    <color:blue>Gadgets</color>: Virtual
    <color:blue>Manufacturer</color>: Lookup
    <color:blue>Number</color>: String
    <color:blue>PictureId</color>: Uniqueidentifier
    <color:blue>Runmachine</color>: Picklist
    StatusCode: Status
}

Contact --{ Account
Account --{ Account
Account --{ Contact
Account --{ Rocket
Account --{ Mission
Contact --{ Rocket
Contact }--{ Mission
Rocket --{ Mission

@enduml

@rappen rappen self-assigned this Oct 13, 2024
rappen added a commit that referenced this issue Oct 28, 2024
rappen added a commit that referenced this issue Oct 28, 2024
rappen added a commit that referenced this issue Oct 28, 2024
rappen added a commit that referenced this issue Oct 28, 2024
@rappen rappen closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants