common-gateway / xxllnc-zgw-bundle
A package for a symfony flex bundle containing functionality for mapping ZGW api standard to XXLLNC api
Installs: 419
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=7.4
- common-gateway/zgw-bundle: >=1.0.40
- commongateway/corebundle: >=1.1.19
Requires (Dev)
- symfony/dependency-injection: ~3.4|~4.1|~5.0
- dev-main
- 0.1.83
- 0.1.82
- 0.1.81
- 0.1.80
- 0.1.79
- 0.1.78
- 0.1.77
- 0.1.76
- 0.1.75
- 0.1.74
- 0.1.73
- 0.1.72
- 0.1.71
- 0.1.70
- 0.1.69
- 0.1.68
- 0.1.67
- 0.1.66
- 0.1.65
- 0.1.64
- 0.1.63
- 0.1.62
- 0.1.61
- 0.1.60
- 0.1.59
- 0.1.58
- 0.1.57
- 0.1.56
- 0.1.55
- 0.1.54
- 0.1.53
- 0.1.52
- 0.1.51
- 0.1.50
- 0.1.49
- 0.1.48
- 0.1.47
- 0.1.46
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.39
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.35
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-fix/BEHEER-2975/zaaktype-sync
- dev-feature/GW-1701/zaaktype-to-casetype
- dev-fix/corebundle-update
- dev-feature/XZ-164/readme-synchronizations
- dev-fix/XRZ-3/translations
- dev-feature/XZ-142/documents-to-zaakinfoobjecten
- dev-feature/XZ-155/readme-documentation
- dev-fix/XZ-35/zaaktype-as-array
- dev-feature/XZ-35/update-zaak
- dev-feature/XZ-151/synchronizeTemp-function
- dev-fix/mapping-fixes
- dev-Product-page
- dev-feature/XZ/sync-zaak
- dev-feature/XZ-135/subObjectSync
- dev-feature/XZ-134/bronzaaktype-mapping
- dev-feature/XZ-147/resultaattypen-mapping
- dev-feature/DIT-147/sync-with-query-params
- dev-fix/mapping
- dev-analysis-o7YwnQ
- dev-feature/XZ-103/informatieobjecttypen-mapping
- dev-feature/use-new-installationService
- dev-feature/codacy-cleanup
- dev-feature/xz-45/src-folder
- dev-feature/xz-45/code-sniffer
- dev-feature/XZ-36/cleanup
- dev-analysis-yrMpND
- dev-analysis-b0jLKM
- dev-analysis-yrMkdN
- dev-feature/zgw-to-xxllnc
- dev-feature/link-catalogus
- dev-analysis-N4pMYr
- dev-analysis-APAZMN
- dev-fix/async
This package is auto-updated.
Last update: 2024-11-12 15:11:13 UTC
README
The XxllncZGWBundle is a Symfony bundle that provides functionality for the CommonGateway about handling synchronizations between the xxllnc zaaksysteem standard and the ZGW standard. So it fetches and send xxllnc objects from and to their ZGW object equilevants.
For more information on ZaakGerichtWerken and XXLNC, please visit here
Bundles Used in the XxllncZGWBundle
The XxllncZGWBundle currently utilizes the following bundles:
- CoreBundle: GitHub Repository
- ZGWBundle: GitHub Repository (the ZGWBundle also includes other bundles like the KlantenBundle which is part of ZGW.)
While the ZGW and CoreBundle can still be installed as standalone components (please refer to their respective installation guides), the XxllncZGWBundle now defaults to installing these bundles as additional plugins on the same gateway.
Backend Installation Instructions
The XxllncZGWBundle backend codebase utilizes the Common Gateway as an open-source installation framework. This means that the XxllncZGWBundle library, in its core form, functions as a plugin on this Framework. To learn more about the Common Gateway, you can refer to the documentation here.
The CommonGateway Gateway UI frontend comes with te CommonGateway.
To install the backend, follow the steps below:
Gateway Installation
- If you do not have the Common Gateway installed, you can follow the installation guide provided here. The Common Gateway installation is required for the backend setup. You can choose any installation method for the gateway, such as Haven, Kubernetes, Linux, or Azure, and any database option like MySQL, PostgreSQL, Oracle, or MsSQL. The gateway framework handles this abstraction.
XxllncZGWBundle Installation - Gateway UI
- After successfully installing the Gateway, access the admin-ui and log in.
- In the left menu, navigate to "Plugins" to view a list of installed plugins. If you don't find the "common-gateway/xxllnc-zgw-bundle" plugin listed here, you can search for it by clicking on "Search" in the upper-right corner and typing "xxllnc" in the search bar.
- Click on the "common-gateway/xxllnc-zgw-bundle" card and then click on the "Install" button to install the plugin.
- The admin-ui allows you to install, upgrade, or remove bundles. However, to load all the required data (schemas, endpoints, sources), you need to execute the initialization command in a php terminal.
XxllncZGWBundle Installation - Terminal
-
Open a php terminal and run the following command to install the XxllncZGWBundle:
```cli $ composer require common-gateway/xxllnc-zgw-bundle ```
Initialization Command (Terminal)
-
To load all the data without any specific content (like testdata), execute the following command:
```cli $ bin/console commongateway:initialize ```
OR
To load all the data along with specific content (like testdata), run:
```cli $ bin/console commongateway:initialize -data ```
With these steps completed, the backend setup for the XxllncZGW project should be ready to use. If you encounter any issues during the installation process, seek assistance from the development team. Happy coding!
Gateway UI - Setup Instructions
Once the backend is up and running, the XxllncZGWBundle can be configured. To ensure proper functionality, the sources and Security Group (Default Anonymous user) need to be modified. Other adjustments are optional.
Configuration Steps:
-
Users
- Change the passwords of the users if necessary. It is recommended that you change the email of the admin user using the following steps
-
Security Group
- Scopes have been added for the xxllnc user. You can view and adjust the scopes of the user via the following steps:
-
Sources
- Provide the required location and the API-Interface-ID and API-KEY (these two as headers) for the following source: xxllnc zaaksysteem
-
Cronjob
- There is a cronjob which can be activated (check isEnabled) if all cases and casetypes need to be synced from the zaaksysteem source. Currently this is always disabled as we dont need all data from the xxllnc api.
Once you have completed these steps, the XxllncZGW Gateway UI should be fully configured and the project is ready to be used.
Commands
To execute commands you need access to a PHP terminal.
There are some commands which can be used to synchronize some single or all objects from the xxllnc api. The first you might want to use is the ZaakTypeCommand, it synchronizes a casetype to a ZGW ZaakType:
$ bin/console xxllnc:zaakType:synchronize id
If you need a certain case to a ZGW ZaakType you can also just execute the ZaakCommand and it will also synchronize its casetype to a ZGW ZaakType:
$ bin/console xxllnc:zaak:synchronize id
If you synchronized some zaaktypen and want to synchronize some specific besluittypen and link these to your earlier synchronized zaaktypen, you can first synchronize the casetypes to besluittypen with the ZaakTypeCommand (it will auto detect if its a ZaakType or BesluitType):
$ bin/console xxllnc:zaakType:synchronize id
And then you can link them to your earlier synchronized zaaktypen as besluittypen with the following command:
$ bin/console xxllnc:zaakType:connect:besluittype
These are all current commands, you can fetch your synchronized objects through the ZGW standard endpoints:
/api/zrc/v1/zaken
/api/ztc/v1/zaaktypen
/api/ztc/v1/besluittypen
Synchronizations
There are a lot of objects being synced from and to the xxllnc zaaksysteem to zgw objects. Here is a table of them.
Syncs from the zaaksysteem:
All above synchronizations are triggered by cronjob or command. Note that all child objects you see from Zaak and ZaakType are synced during synchronization of Zaak or ZaakType. Also read commands on how to execute certain synchronizations.
Syncs to the zaaksysteem:
Note: casetypes can't be created yet on the zaaksysteem api so we do not sync back ZaakTypen.
Design decisions
Special noted decisions made in this project are:
- ZGW 'verlenging' is not mappable from a xxllnc case and thus ignored during synchronization.
- The xxllnc zaaksysteem does not ZGW BesluitTypen or Besluiten and thus there have been created 3 specific BesluitTypen as normal xxllnc casetypes which can be synced with the ZaakType command, so when a Besluit in the gateway is created for one of these 3 BesluitTypen we synchronize it back to xxllnc as a case and link it to the main case (Zaak) as related case.
- Casetypes can't be created/updated through the zaaksysteem api, so we do not sync ZaakTypen back to the zaaksysteem if they are created/updated on the gateway.