Skip to content

Commit

Permalink
Merge pull request #8456 from mandy-chessell/oak2024
Browse files Browse the repository at this point in the history
Fix server metadata
  • Loading branch information
mandy-chessell authored Oct 22, 2024
2 parents 65800a6 + c279a37 commit 9338793
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 24 deletions.
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

0 comments on commit 9338793

Please sign in to comment.