cancel
Showing results for 
Search instead for 
Did you mean: 

How to create entities with default rows in a Power Designer LDM diagram?

0 Kudos

When we create entities in an LDM diagram, we may have multiple entities with the same rows.

e.g.

ENTITY_A has 2 rows, one is (a, b, c), the other is (d, e, f)

ENTITY_B has 2 rows, one is (a, b, c), the other is (h, i, j)

ENTITY_C has 2 rows, one is (a, b, c), the other is (l, m, n)

Is it possible to make entities having the default row (a, b, c) when they are created?

Accepted Solutions (0)

Answers (1)

Answers (1)

Ondrej_Divis
Contributor
0 Kudos

It is definitely possible to create new logical entities with some subobject or properties predefined from the very beginning, however you will have to be more specific, what do you mean by rows in logical entities? Do you mean attributes? Or do you mean textual description (Comment, Description, Annotation...?) Perhaps post some screenshot here and show us what you need to automate.


Regards,

Ondrej Divis

0 Kudos

Thanks for answering. I think that should be attributes.

e.g. In the img attached, I want to automate creating other entities with 'id' and 'name'

Ondrej_Divis
Contributor
0 Kudos

There are several ways how to achieve it. IMHO two best ways how to do that in your case are:

  1. Implement it as a custom check + autocorrection
  2. Implement it as an event handler

First option is great because it can cover both new entities and already existing entities. However it requires some user action (triggering Check Model function and running autocorrection for some entities).

Second option is completely automated (no user interaction is needed), but it covers only newly created entities and it does not check/fix already existing entities. Or you can combine both approaches.

As you can see, PowerDesigner allows more paths to your goal. If you need any further help with that, please let me know. Or you can find me on LinkedIn.

Regards,

Ondrej Divis