diff --git a/app/signals/apps/sigmax/stuf_protocol/incoming/actualiseerZaakstatus_Lk01.py b/app/signals/apps/sigmax/stuf_protocol/incoming/actualiseerZaakstatus_Lk01.py index a668ded38..08e833f7d 100644 --- a/app/signals/apps/sigmax/stuf_protocol/incoming/actualiseerZaakstatus_Lk01.py +++ b/app/signals/apps/sigmax/stuf_protocol/incoming/actualiseerZaakstatus_Lk01.py @@ -7,12 +7,12 @@ import logging import re +from django.conf import settings from django.core.exceptions import ValidationError from django.shortcuts import render from lxml import etree from signals.apps.sigmax.models import CityControlRoundtrip -from signals.apps.signals import workflow from signals.apps.signals.models import Signal logger = logging.getLogger(__name__) @@ -107,7 +107,7 @@ def _update_status_actualiseerZaakstatus_Lk01(signal, request_data): """ status_text = _get_status_text_actualiseerZaakstatus_Lk01(request_data) status_data = { - 'state': workflow.AFGEHANDELD_EXTERN, + 'state': settings.SIGMAX_AFGEHANDELD_STATUS, 'text': status_text, 'extra_properties': { 'sigmax_datum_afgehandeld': request_data['datum_afgehandeld'], diff --git a/app/signals/settings.py b/app/signals/settings.py index 0ed8102aa..06b5a90a4 100644 --- a/app/signals/settings.py +++ b/app/signals/settings.py @@ -3,6 +3,7 @@ import os from typing import Any, Callable +from signals.apps.signals import workflow from signals import __version__ BASE_DIR: str = os.path.dirname(os.path.abspath(__file__)) @@ -378,6 +379,8 @@ 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_AFGEHANDELD_STATUS: str = os.getenv('SIGMAX_AFGEHANDELD_STATUS', workflow.AFGEHANDELD_EXTERN) + # Child settings SIGNAL_MAX_NUMBER_OF_CHILDREN: int = 10