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

Fix server metadata #8456

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EgeriaContentPacksGUIDMap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoBusinessSystemsArchive.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoClinicalTrialsTemplatesArchive.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoComboArchive.omarchive

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoGovernanceProgramArchive.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoOrganizationArchive.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoSustainabilityArchive.omarchive

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content-packs/CocoTypesArchive.omarchive

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6724,6 +6724,19 @@ public Classification getServerPurposeClassification(String classificationName,
}



/**
* Create a classification for an Engine software server capability.
*
* @param classificationName name of the classification
* @return classification
*/
public Classification getEngineClassification(String classificationName)
{
return this.archiveHelper.getClassification(classificationName, null, InstanceStatus.ACTIVE);
}


/**
* Add a ServerPurpose classification to an IT Infrastructure element.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,43 @@ private void addSystems()
{
String softwareCapabilityQName = softwareCapabilityTypeName + " for " + systemDefinition.getQualifiedName();

archiveHelper.addSoftwareCapability(softwareCapabilityTypeName,
softwareCapabilityQName,
softwareCapabilityQName,
null,
null,
null,
null,
null,
null,
null,
(Classification)null,
serverGUID,
OpenMetadataType.SOFTWARE_SERVER.typeName,
OpenMetadataType.ASSET.typeName);
if (softwareCapabilityTypeName.endsWith(OpenMetadataType.ENGINE.typeName))
{
Classification engineClassification = archiveHelper.getEngineClassification(softwareCapabilityTypeName);

archiveHelper.addSoftwareCapability(OpenMetadataType.ENGINE.typeName,
softwareCapabilityQName,
softwareCapabilityQName,
null,
null,
null,
null,
null,
null,
null,
engineClassification,
serverGUID,
OpenMetadataType.SOFTWARE_SERVER.typeName,
OpenMetadataType.ASSET.typeName);
}
else
{
archiveHelper.addSoftwareCapability(softwareCapabilityTypeName,
softwareCapabilityQName,
softwareCapabilityQName,
null,
null,
null,
null,
null,
null,
null,
(Classification)null,
serverGUID,
OpenMetadataType.SOFTWARE_SERVER.typeName,
OpenMetadataType.ASSET.typeName);
}

archiveHelper.addSupportedSoftwareCapabilityRelationship(softwareCapabilityQName,
systemDefinition.getQualifiedName(),
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public enum SystemTypeDefinition
"UI server supplying UI code (javascript/typescript) to the browser.",
"These servers are part of a middleware deployment.",
null,
"null"),
null),

/**
* cloud-saas-service - Application or service hosted by an external cloud provider.
Expand Down
Loading