laptop-codeFor developers

circle-info

The for developers section within each feature gives more tech heavy information of configuring, extending or altering Valtimo via the codebase.

chevron-rightZaak lifecycle events and usagehashtag

Zaak lifecycle events (since 12.14.2)

  • The Zaken API communicates Zaak lifecycle events as Spring Application Events. It concerns the following Zaak lifecycle events:

    • DocumentLinkedToZaak

    • ZaakRolCreated

    • ZaakRolUpdated

    • ZaakCreated

    • ZaakPatched

    • ZaakStatusCreated

    • ZaakResultaatCreated

    • ZaakOpschortingUpdated

    • ZaakeigenschapCreated

    • ZaakeigenschapUpdated

    • ZaakeigenschapDeleted

    • ZaakObjectCreated

Usage

The events can be received using the EventListener annotation.

//component handling ZaakEvent
@Component
class ZaakEventHandler {

    @EventListener
    fun handleZaakCreated(event: ZaakCreated) {
        logger.info("Received ZaakCreated event: ${event.zaakId}")

        // Process the event
        processNewZaak(event)

    }
}

Last updated