Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Import from the domain model interchange format #31

Open
kshychko opened this issue Apr 15, 2020 · 0 comments
Open

Import from the domain model interchange format #31

kshychko opened this issue Apr 15, 2020 · 0 comments
Assignees

Comments

@kshychko
Copy link
Contributor

Now when we have export functionality aligned, let's do the import now.
We start simple - without the support of sub-resources.
When a file is imported the code should look for a match between resources in the imported file and packages in the StarUML project - the same as it was implemented before.
Tricky moments:

  1. DataTypes can be updated with new types, so probably this is the first thing that needs to be checked. If DataTypes package doesn't exist in the root of the project it needs to be created.
  2. Relationships in the imported files don't have end1/edn2 properties and can belong to the child class instead of parent one in the StarUML project. Both child and parent classes need to be checked if the relationship exists. If it doesn't exist let's add it the same way as StarUML does - to the child class with the end1 is a child and end2 is a parent. I'll add the rule mapping for aggregation/composition a bit later, but it must be the same as for the import.
  3. StatusCode enum. If it doesn't exist in the StarUML project it needs to be added to the root with the values - active/deleted/deprecated/proposed.
faizanvahevaria added a commit that referenced this issue Apr 20, 2020
…eate/Update -> tag, Create -> datatype class, Create -> tag, Create StatusCode if it does not exist
faizanvahevaria added a commit that referenced this issue Apr 20, 2020
faizanvahevaria added a commit that referenced this issue Apr 23, 2020
Check for valid relationship
Update relationship (Aggregation, Composition, Generalization) - multiplicity, description status
faizanvahevaria added a commit that referenced this issue Apr 23, 2020
faizanvahevaria added a commit that referenced this issue Apr 24, 2020
    Aggregation, Composition, Generalization for Same & Other Context
    params name, description, multiplicity, status
faizanvahevaria added a commit that referenced this issue Apr 24, 2020
faizanvahevaria added a commit that referenced this issue Apr 27, 2020
#31 Display modal dialog till Import/Export is being processed
faizanvahevaria added a commit that referenced this issue Apr 28, 2020
- Create new attributes in new created class
- Add status code if not exist which added from json
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants