event

Pendency Resolved

The responsible user resolved a pendency as done or declined. Carries only the id; consumers are expected to re-read the pendency. No consumer today.

Event Topic: PendencyKey: idNo consumer

Overview

Fact: a pendency left the OPEN state by the hand of its responsible, with outcome DONE or DECLINED. By design the payload carries only the id: a consumer re-reads the pendency’s current state instead of trusting a snapshot.

When it is published. CNA NexusCNA NexusServicev1.0.0Franchise network back-office (franchises, economic groups, partners, contracts and amendments, document storage, AI doc...PublishesInviteUser, ContractActivationRequested +13SubscribesContractActivationRequested, AmendmentApplyRequested +4Ownercna-platformMapRepoView docs, in resolvePendency, reached from the GraphQL mutation of the same name: after validating that the caller is the responsible and the pendency is still OPEN, the status, the note and resolvedAt are written and the producer is awaited. No transaction and no afterCommit. A CANCELLED closure does not publish.

Consumers. None in cna-auth, cna-nexus, cna-one or cna-placement. The intended reader is the process that created the pendency, so it can continue its flow; no such process exists yet.

Kafka

Topic (aggregateRoot)Pendency
Message key (routingKey)payload.id
Contract ownerNEXUS
metadata.eventPendencyResolved
Consumer groupnone

Payload schema

Source of truth

type PendencyResolvedPayload = {
id: string;
};
export class PendencyResolved extends Event<PendencyResolvedPayload> {
static readonly owner = "NEXUS";
static readonly aggregateRoot = "Pendency";
static readonly routingKey = "id";
}

The class exists only in cna-nexus.

Custom properties

PropertyValue
Contract Ownerx-contract-ownerNEXUS
Kafka Topicx-kafka-topicPendency
Message Keyx-message-keyid
Sourcex-sourcecna-nexus api/app/events/nexus/pendency/PendencyResolved.ts
Driftx-driftNo consumer in any application. Nothing outside the pendency domain creates pendencies today either.
1 property
idstring
required

Pendency id (UUID) in cna-nexus pendency.pendencies. Kafka message key. Re-read the pendency for its outcome (DONE or DECLINED), note and resolvedAt.