Skip to content

Commit

Permalink
Merge pull request #8328 from mandy-chessell/oak2024
Browse files Browse the repository at this point in the history
Add auto-refresh to integration daemon
  • Loading branch information
mandy-chessell authored Aug 19, 2024
2 parents 673a029 + a8c0669 commit b3734e2
Show file tree
Hide file tree
Showing 112 changed files with 5,365 additions and 1,683 deletions.
2 changes: 1 addition & 1 deletion CocoComboGUIDMap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CoreContentPackGUIDMap.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.

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -618,11 +618,11 @@ public void setupProcessParent(String userId,
invalidParameterHandler.validateGUID(parentProcessGUID, parentProcessGUIDParameterName, methodName);
invalidParameterHandler.validateGUID(childProcessGUID, childProcessGUIDParameterName, methodName);

int containmentTypeOrdinal = ProcessContainmentType.USED.getOpenTypeOrdinal();
int containmentTypeOrdinal = ProcessContainmentType.USED.getOrdinal();

if (containmentType != null)
{
containmentTypeOrdinal = containmentType.getOpenTypeOrdinal();
containmentTypeOrdinal = containmentType.getOrdinal();
}

processHandler.setupProcessParent(userId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void reassignToDo(String userId,

List<RelatedMetadataElement> assignedActors = openMetadataStoreClient.getRelatedMetadataElements(userId,
toDoGUID,
1,
2,
OpenMetadataType.ACTION_ASSIGNMENT_RELATIONSHIP_TYPE_NAME,
false,
false,
Expand All @@ -385,8 +385,8 @@ public void reassignToDo(String userId,
null,
null,
OpenMetadataType.ACTION_ASSIGNMENT_RELATIONSHIP_TYPE_NAME,
toDoGUID,
actorGUID,
toDoGUID,
false,
false,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public enum DataManagerAuditCode implements AuditLogMessageSet
* and type name {2} due to exception {3}. The error message from the exception was {4}
*/
OUTBOUND_EVENT_EXCEPTION("OMAS-DATA-MANAGER-0018",
AuditLogRecordSeverityLevel.EXCEPTION,
AuditLogRecordSeverityLevel.EVENT,
"Unable to send an outbound event of type {0} for instance with unique identifier of {1} and type name {2} due to exception {3}. The error message from the exception was {4}",
"The system detected an exception whilst attempting to send an event to the out topic. No event is sent.",
"Investigate and correct the source of the error. Once fixed, events will be sent."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public enum GovernanceServerEventType
*/
REFRESH_INTEGRATION_CONNECTOR_EVENT (2,
"Refresh Integration Connector Configuration",
"The configuration for am Integration Connector has changed."),
"The configuration for an Integration Connector has changed."),


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public enum GovernanceServerAuditCode implements AuditLogMessageSet
* for Governance Engine {0} ({1}) has changed
*/
REFRESH_GOVERNANCE_ENGINE("OMAS-GOVERNANCE-SERVER-0013",
AuditLogRecordSeverityLevel.INFO,
AuditLogRecordSeverityLevel.EVENT,
"The Governance Server Open Metadata Access Service (OMAS) sent notification that the configuration for Governance Engine {0} " +
"({1}) has changed",
"The access service sends out configuration notifications to ensure listening engine hosts have the most up to-date " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,22 @@ private boolean processRegisteredIntegrationConnector(String sourceName,
{
EntityProxy integrationConnectorEntityProxy = relationship.getEntityTwoProxy();

if (integrationConnectorEntityProxy != null)
{
eventPublisher.publishRefreshIntegrationConnectorEvent(integrationConnectorEntityProxy.getGUID(),
repositoryHelper.getStringProperty(sourceName,
OpenMetadataProperty.QUALIFIED_NAME.name,
integrationConnectorEntityProxy.getUniqueProperties(),
methodName));
return true;
}
}
else if (repositoryHelper.isTypeOf(sourceName,
type.getTypeDefName(),
OpenMetadataType.CATALOG_TARGET_RELATIONSHIP_TYPE_NAME))
{
EntityProxy integrationConnectorEntityProxy = relationship.getEntityOneProxy();

if (integrationConnectorEntityProxy != null)
{
eventPublisher.publishRefreshIntegrationConnectorEvent(integrationConnectorEntityProxy.getGUID(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Content-Type: application/json

###

@server1GUID=7af2f5a1-211b-4059-9e44-eb21e4093e96
@server1GUID=281c6358-ee6f-4009-9de9-4ef92a46f393


###
Expand Down
Loading

0 comments on commit b3734e2

Please sign in to comment.