Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an additional configurable case closing behavior which allows for an 'eindstatus' to be delayed/ignored in actualiseerZaakStatus when recieved before the case is closed by 'einddatum' #414

Closed
MLenterman opened this issue Jul 5, 2024 · 0 comments · Fixed by #424
Labels
documentation Improvements or additions to documentation feature New feature or request

Comments

@MLenterman
Copy link
Collaborator

We already have a case closing scenario for when the 'eindstatus' is set in an actualiseerZaakStatus message, before the updateZaak message that sets the 'eindatum' (and resultaat). This behavior should cover the scenario of an additional geefZaakDetails in between the actualiseerZaakStatus and updateZaak messages.

Because actualiseerZaakStatus contains the 'eindstatus', the case is closed by OpenZaak as per ZGW specification. This also results in the case having 'einddatum' set. The ZDS application then sees that the case is closed in the geefZaakDetails and throws an error, because it expect the case not to be closed yet. The ZDS standard specifies that a case is closed when 'einddatum' is set, which would be in the updateZaak message that would come after actualiseerZaakStatus and geefZaakDetails.

The initial solution should be to add a property in the translation profile that, when enabled, will ignore specifically the 'eindstatus' for a given zaaktype. The following geefZaakDetails will then indicate that the case is indeed not closed yet, which will trigger the ZDS application to send the updateZaak message that sets 'einddatum' (and resultaat). From here 2 things could happen when it comes to the 'eindstatus'. If the updateZaak message contains the 'eindstatus' with verwerkingsoort "I", ZaakBrug should validate if it exists, and if that is not the case, add the status. This will then trigger the case to be closed on the ZGW side due to the 'eindstatus' being set. Alternatively, if updateZaak does not contain the 'eindstatus' with verwerkingsoort "I", it should trigger an additional case closing behavior where ZaakBrug adds the 'eindstatus' if 'eindatum' is set, but no 'eindstatus' is present.

Initially we should try to ignore the 'eindstatus' in actualiseerZaakStatus. If it turns out to result in loss of information, we can try to work on delaying it instead. This will be quite difficult to do without keeping state, which we try to avoid at all cost.

@MLenterman MLenterman added documentation Improvements or additions to documentation feature New feature or request labels Jul 5, 2024
@mericakgul mericakgul linked a pull request Jul 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants