Skip to content

create-the-domain-model #9365

@rmdrha

Description

@rmdrha

Please use the form below, leaving the prefilled data to help us. Thank you.

Page link: create-the-domain-model

Document link: creating-the-domain-model.md

My Issue/Suggestion

Hi I found some error at -> 4. Configuring a Generalization

I used this codes
Image

const generalization = domainmodels.Generalization.createIn(customer);
const systemUser = workingCopy.model().findEntityByQualifiedName(Administration.Account);
generalization.generalization = systemUser;

but It was not work.

I suggest this:
Image

const generalization = domainmodels.Generalization.createIn(customer);
const systemUser = model.findEntityByQualifiedName(Administration.Account);
if (systemUser) {
generalization.generalization = systemUser;
} else {
console.log('error: systemUser not found');
}

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions