IRtImportAuditTrail
Namespace: Meshmakers.Octo.Runtime.Contracts.Exchange
Records noteworthy events of the RT model import path (IImportRtModelCommand)
so they surface to operators. The engine's default implementation forwards to
IAuditEventSink; hosts that want the events in the platform event log replace the
sink, not this interface (see the audit-trail architecture notes in the engine repo).
public interface IRtImportAuditTrail
Methods
RecordMissingMandatoryAttributesAsync(String, RtCkId<CkTypeId>, OctoObjectId, IReadOnlyList<String>)
Records that an imported entity is missing one or more mandatory attributes — attributes that are not optional and carry neither default values nor an auto-increment reference, so nothing can ever fill them. The bulk import path bypasses the entity rule engine, so such an entity is persisted in a state the CK model forbids (AB#4771/AB#4772) unless RtImportOptions.StrictMandatoryValidation rejects the import.
Task RecordMissingMandatoryAttributesAsync(string tenantId, RtCkId<CkTypeId> ckTypeId, OctoObjectId rtId, IReadOnlyList<string> missingCkAttributeIds)
Parameters
tenantId String
Tenant the import targets.
ckTypeId RtCkId<CkTypeId>
Runtime CK type id of the affected entity.
rtId OctoObjectId
Runtime id of the affected entity.
missingCkAttributeIds IReadOnlyList<String>
The missing attributes' CK attribute ids.