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

Add ability to configure Sigmax return state #1466

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging
import re

from django.conf import settings
from django.core.exceptions import ValidationError
from django.shortcuts import render
from lxml import etree
Expand Down Expand Up @@ -107,7 +108,8 @@ def _update_status_actualiseerZaakstatus_Lk01(signal, request_data):
"""
status_text = _get_status_text_actualiseerZaakstatus_Lk01(request_data)
status_data = {
'state': workflow.AFGEHANDELD_EXTERN,
'state': workflow.AFGEHANDELD_EXTERN if not settings.SIGMAX_END_STATE_IS_AFGEHANDELD else workflow.AFGEHANDELD,
'send_email': True if settings.SIGMAX_END_STATE_IS_AFGEHANDELD else False,
'text': status_text,
'extra_properties': {
'sigmax_datum_afgehandeld': request_data['datum_afgehandeld'],
Expand Down
1 change: 1 addition & 0 deletions app/signals/apps/signals/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
],
VERZONDEN: [
AFGEHANDELD_EXTERN,
AFGEHANDELD,
GEANNULEERD, # SIG-2987
],
VERZENDEN_MISLUKT: [
Expand Down
1 change: 1 addition & 0 deletions app/signals/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def is_super_user(user) -> bool:
SIGMAX_CLIENT_CERT: str | None = os.getenv('SIGMAX_CLIENT_CERT', None)
SIGMAX_CLIENT_KEY: str | None = os.getenv('SIGMAX_CLIENT_KEY', None)
SIGMAX_SEND_FAIL_TIMEOUT_MINUTES: str | int = os.getenv('SIGMAX_SEND_FAIL_TIMEOUT_MINUTES', 60*24) # noqa Default is 24hrs.
SIGMAX_END_STATE_IS_AFGEHANDELD: bool = os.getenv('SIGMAX_END_STATE_IS_AFGEHANDELD', False) in TRUE_VALUES

# Child settings
SIGNAL_MAX_NUMBER_OF_CHILDREN: int = 10
Expand Down
Loading