Skip to content

Align OK document relationship logic with OZ (bidirectional) #531

@Marvinvincible

Description

@Marvinvincible

Thema / Theme

Klantinteracties API

Omschrijving / Description

In the OZ setup, creating a relationship between a case and a document triggers a notification. This notification is then picked up by another component, which creates the mirrored (bidirectional) relationship.

In the current implementation for OP/OK, only a one-way link is established, there’s no information about which specific document the link refers to.

This behavior needs to be updated so that the relationship between OP/OK and documents is bidirectionally recorded, similar to the OZ approach.

Acceptance criteria:

  • Creating a document relationship in OP/OK triggers a notification, just like in OZ.
  • The corresponding mirrored relationship is automatically created by the receiving component.
  • Correctly identify and link the document involved.

Requirements to make this possible:

To be implemented

  • Open Zaak should add klantcontact to the objectType enum for ObjectInformatieObject
  • Possibly refactor OnderwerpObject.onderwerpobjectidentificator? Currently it's not clear how to link with multiple Documenten APIs, perhaps we should use URNs instead?
  • Open Klant should send a cloud event to Open Notificaties when an OnderwerpObject is created, updated or deleted (shape TBD)
    • this should include the reference to the document and the reference to the klantcontact
  • Open Zaak should be able to handle incoming cloud events for created OnderwerpObjecten to create/update/delete the ObjectInformatieObject relation

Toegevoegde waarde / Added value

No response

Aanvullende opmerkingen / Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions