From 3d38d38a3b49bcf8c170365fc91ba52cec029621 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Thu, 5 Mar 2026 13:12:39 +0000 Subject: [PATCH 01/36] DIAC-2234 WA tasks for query management --- .../wa-task-completion-ia-asylum.dmn | 13 ++- .../wa-task-configuration-ia-asylum.dmn | 4 +- .../wa-task-initiation-ia-asylum.dmn | 110 ++++++++++++++++++ .../wa-task-permissions-ia-asylum.dmn | 2 +- .../resources/wa-task-types-ia-asylum.dmn | 13 ++- .../dmn/CamundaTaskCompletionTest.java | 2 +- .../dmn/CamundaTaskInitiationTest.java | 2 +- .../dmn/CamundaTaskTypesTest.java | 2 +- 8 files changed, 140 insertions(+), 8 deletions(-) diff --git a/src/main/resources/wa-task-completion-ia-asylum.dmn b/src/main/resources/wa-task-completion-ia-asylum.dmn index 9aca317f..8fdb2704 100644 --- a/src/main/resources/wa-task-completion-ia-asylum.dmn +++ b/src/main/resources/wa-task-completion-ia-asylum.dmn @@ -1,5 +1,5 @@ - + @@ -1065,6 +1065,17 @@ "Auto" + + + "raiseQuery" + + + "respondToQuery" + + + "Auto" + + diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index a18f54f5..7b4b9f9d 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1,5 +1,5 @@ - + @@ -538,7 +538,7 @@ - "reviewRemissionApplication","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal" + "reviewRemissionApplication","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal", "respondToQuery" "roleCategory" diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index a49770a0..0f1edc28 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22571,6 +22571,116 @@ "caseProgression" + + + "raiseQuery" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "respondToQuery" + + + "Respond to Query" + + + + + + "caseProgression" + + diff --git a/src/main/resources/wa-task-permissions-ia-asylum.dmn b/src/main/resources/wa-task-permissions-ia-asylum.dmn index 0ec26667..ecbb2232 100644 --- a/src/main/resources/wa-task-permissions-ia-asylum.dmn +++ b/src/main/resources/wa-task-permissions-ia-asylum.dmn @@ -709,7 +709,7 @@ CTSC Team Leader task permissions - "reviewRemissionApplication","detainedReviewRemissionApplication","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","cmrListed","detainedCmrListed","cmrUpdated","detainedCmrUpdated","reviewInterpreters","detainedReviewInterpreters","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal","detainedListCmr","printAndSendHoBundle","detainedPrintAndSendHoBundle","printAndSendHoResponse","printAndSendHearingRequirements","detainedPrintAndSendHearingRequirements","printAndSendHearingBundle","detainedPrintAndSendHearingBundle","printAndSendDecisionCorrectedRule31","detainedPrintAndSendDecisionCorrectedRule31","printAndSendDecisionCorrectedRule32","detainedPrintAndSendDecisionCorrectedRule32","printAndSendHoApplication","detainedPrintAndSendHoApplication","printAndSendHoEvidence","detainedPrintAndSendHoEvidence","printAndSendAppealDecision","detainedPrintAndSendAppealDecision","printAndSendFTPADecision","detainedPrintAndSendFTPADecision","printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission" + "reviewRemissionApplication","detainedReviewRemissionApplication","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","cmrListed","detainedCmrListed","cmrUpdated","detainedCmrUpdated","reviewInterpreters","detainedReviewInterpreters","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal","detainedListCmr","printAndSendHoBundle","detainedPrintAndSendHoBundle","printAndSendHoResponse","printAndSendHearingRequirements","detainedPrintAndSendHearingRequirements","printAndSendHearingBundle","detainedPrintAndSendHearingBundle","printAndSendDecisionCorrectedRule31","detainedPrintAndSendDecisionCorrectedRule31","printAndSendDecisionCorrectedRule32","detainedPrintAndSendDecisionCorrectedRule32","printAndSendHoApplication","detainedPrintAndSendHoApplication","printAndSendHoEvidence","detainedPrintAndSendHoEvidence","printAndSendAppealDecision","detainedPrintAndSendAppealDecision","printAndSendFTPADecision","detainedPrintAndSendFTPADecision","printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission", "respondToQuery" diff --git a/src/main/resources/wa-task-types-ia-asylum.dmn b/src/main/resources/wa-task-types-ia-asylum.dmn index dbde84ab..40ad5c70 100644 --- a/src/main/resources/wa-task-types-ia-asylum.dmn +++ b/src/main/resources/wa-task-types-ia-asylum.dmn @@ -1,5 +1,5 @@ - + @@ -1566,6 +1566,17 @@ "Detained - Review ECR remission" + + + + + + "respondToQuery" + + + "Respond to Query" + + diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskCompletionTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskCompletionTest.java index 59dbdabe..02c87409 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskCompletionTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskCompletionTest.java @@ -697,7 +697,7 @@ void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(96)); + assertThat(logic.getRules().size(), is(97)); } diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskInitiationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskInitiationTest.java index d77eb869..915adade 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskInitiationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskInitiationTest.java @@ -4870,7 +4870,7 @@ void if_this_test_fails_needs_updating_with_your_changes() { DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); assertThat(logic.getInputs().size(), is(32)); assertThat(logic.getOutputs().size(), is(4)); - assertThat(logic.getRules().size(), is(201)); + assertThat(logic.getRules().size(), is(202)); } public static Stream addendumScenarioProvider() { diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskTypesTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskTypesTest.java index 81ee2ba9..dd731f81 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskTypesTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskTypesTest.java @@ -904,7 +904,7 @@ void check_dmn_changed() { DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); assertThat(logic.getInputs().size(), is(1)); assertThat(logic.getOutputs().size(), is(2)); - assertThat(logic.getRules().size(), is(141)); + assertThat(logic.getRules().size(), is(142)); } } From 971e566dc2fecc6a5c9512c79c74db65a011bf54 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Thu, 5 Mar 2026 17:07:11 +0000 Subject: [PATCH 02/36] DIAC-2234 WA tasks for query management --- src/main/resources/wa-task-completion-ia-asylum.dmn | 2 +- src/main/resources/wa-task-initiation-ia-asylum.dmn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-completion-ia-asylum.dmn b/src/main/resources/wa-task-completion-ia-asylum.dmn index 8fdb2704..af4cadd9 100644 --- a/src/main/resources/wa-task-completion-ia-asylum.dmn +++ b/src/main/resources/wa-task-completion-ia-asylum.dmn @@ -1067,7 +1067,7 @@ - "raiseQuery" + "queryManagementRaiseQuery" "respondToQuery" diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 0f1edc28..59415d04 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22573,7 +22573,7 @@ - "raiseQuery" + "queryManagementRaiseQuery" From e8c5f6eb728bd1106cce716d021b497389d273b4 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 6 Mar 2026 12:13:16 +0000 Subject: [PATCH 03/36] DIAC-2234 WA tasks for query management --- src/main/resources/wa-task-permissions-ia-asylum.dmn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-permissions-ia-asylum.dmn b/src/main/resources/wa-task-permissions-ia-asylum.dmn index ecbb2232..78e04b32 100644 --- a/src/main/resources/wa-task-permissions-ia-asylum.dmn +++ b/src/main/resources/wa-task-permissions-ia-asylum.dmn @@ -679,7 +679,7 @@ "printAndSendHoEvidence","detainedPrintAndSendHoEvidence", "printAndSendAppealDecision","detainedPrintAndSendAppealDecision", "printAndSendFTPADecision","detainedPrintAndSendFTPADecision", -"printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission" +"printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission", "respondToQuery" @@ -709,7 +709,7 @@ CTSC Team Leader task permissions - "reviewRemissionApplication","detainedReviewRemissionApplication","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","cmrListed","detainedCmrListed","cmrUpdated","detainedCmrUpdated","reviewInterpreters","detainedReviewInterpreters","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal","detainedListCmr","printAndSendHoBundle","detainedPrintAndSendHoBundle","printAndSendHoResponse","printAndSendHearingRequirements","detainedPrintAndSendHearingRequirements","printAndSendHearingBundle","detainedPrintAndSendHearingBundle","printAndSendDecisionCorrectedRule31","detainedPrintAndSendDecisionCorrectedRule31","printAndSendDecisionCorrectedRule32","detainedPrintAndSendDecisionCorrectedRule32","printAndSendHoApplication","detainedPrintAndSendHoApplication","printAndSendHoEvidence","detainedPrintAndSendHoEvidence","printAndSendAppealDecision","detainedPrintAndSendAppealDecision","printAndSendFTPADecision","detainedPrintAndSendFTPADecision","printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission", "respondToQuery" + "reviewRemissionApplication","detainedReviewRemissionApplication","assignAFTPAJudge","detainedAssignAFTPAJudge","listTheCase","detainedListTheCase","sendPaymentRequest","markAsPaid","cmrListed","detainedCmrListed","cmrUpdated","detainedCmrUpdated","reviewInterpreters","detainedReviewInterpreters","processFeeRefund","detainedProcessFeeRefund","reviewDraftAppeal","detainedReviewDraftAppeal","detainedListCmr","printAndSendHoBundle","detainedPrintAndSendHoBundle","printAndSendHoResponse","printAndSendHearingRequirements","detainedPrintAndSendHearingRequirements","printAndSendHearingBundle","detainedPrintAndSendHearingBundle","printAndSendDecisionCorrectedRule31","detainedPrintAndSendDecisionCorrectedRule31","printAndSendDecisionCorrectedRule32","detainedPrintAndSendDecisionCorrectedRule32","printAndSendHoApplication","detainedPrintAndSendHoApplication","printAndSendHoEvidence","detainedPrintAndSendHoEvidence","printAndSendAppealDecision","detainedPrintAndSendAppealDecision","printAndSendFTPADecision","detainedPrintAndSendFTPADecision","printAndSendReheardHearingRequirements","detainedPrintAndSendReheardHearingRequirements","reviewASRemission", "reviewLARemission", "reviewHOWaiverRemission", "reviewAuthorityRemission", "reviewHWFRemission", "reviewECRRemission", "detainedReviewASRemission", "detainedReviewLARemission", "detainedReviewHOWaiverRemission", "detainedReviewAuthorityRemission", "detainedReviewHWFRemission", "detainedReviewECRRemission" From 5f02a55c9cf693ffbf9d70bdc31708563eac9a67 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 10 Mar 2026 14:47:37 +0000 Subject: [PATCH 04/36] add work type for "respondToQuery" --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 7b4b9f9d..93d044cd 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -262,7 +262,7 @@ "reviewAddendumEvidence", "detainedReviewAddendumEvidence", "decideOnTimeExtension", - "sendDecisionsAndReasons","detainedSendDecisionsAndReasons","detainedReviewAdditionalEvidence","detainedReviewAdditionalHomeOfficeEvidence","detainedReviewRespondentEvidence" + "sendDecisionsAndReasons","detainedSendDecisionsAndReasons","detainedReviewAdditionalEvidence","detainedReviewAdditionalHomeOfficeEvidence","detainedReviewRespondentEvidence", "respondToQuery" "workType" From 032ff2d345fddb08e006d68e2cfb36e767bf70c6 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Thu, 12 Mar 2026 15:21:18 +0000 Subject: [PATCH 05/36] add work type for "respondToQuery" --- .../wa-task-configuration-ia-asylum.dmn | 53 ++++++++++++++++++- .../wa-task-initiation-ia-asylum.dmn | 2 +- .../dmn/CamundaTaskConfigurationTest.java | 2 +- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 93d044cd..5fd0344d 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -262,7 +262,7 @@ "reviewAddendumEvidence", "detainedReviewAddendumEvidence", "decideOnTimeExtension", - "sendDecisionsAndReasons","detainedSendDecisionsAndReasons","detainedReviewAdditionalEvidence","detainedReviewAdditionalHomeOfficeEvidence","detainedReviewRespondentEvidence", "respondToQuery" + "sendDecisionsAndReasons","detainedSendDecisionsAndReasons","detainedReviewAdditionalEvidence","detainedReviewAdditionalHomeOfficeEvidence","detainedReviewRespondentEvidence" "workType" @@ -1033,6 +1033,57 @@ true + + + + + + "respondToQuery" + + + "workType" + + + "query_work" + + + false + + + + + + + + "respondToQuery" + + + "roleCategory" + + + "CTSC" + + + false + + + + + + + + "respondToQuery" + + + "description" + + + "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ") + + + false + + diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 59415d04..032531ee 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22678,7 +22678,7 @@ - "caseProgression" + "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index e4ef7296..d4309752 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(36)); + assertThat(logic.getRules().size(), is(39)); } @SuppressWarnings("checkstyle:indentation") From fc0c72cec1324d66c2f79a74427cb4393c5791f6 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Thu, 12 Mar 2026 16:37:07 +0000 Subject: [PATCH 06/36] revert category identifier --- src/main/resources/wa-task-initiation-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 032531ee..59415d04 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22678,7 +22678,7 @@ - "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId + "caseProgression" From bfde75272706ae435eeccc7bc67480d7121505f4 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 09:24:17 +0000 Subject: [PATCH 07/36] revert category identifier --- src/main/resources/wa-task-initiation-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 59415d04..032531ee 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22678,7 +22678,7 @@ - "caseProgression" + "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId From 79a63dbde398ea38c4a2a308a006435d280b428d Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 10:46:11 +0000 Subject: [PATCH 08/36] revert category identifier --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 5fd0344d..1740bdf6 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1078,7 +1078,7 @@ "description" - "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ") + "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" false From 67797ca0c88ec72a2647994291f47d71449862c4 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 11:14:03 +0000 Subject: [PATCH 09/36] delete duplicate in configuration file --- .../wa-task-configuration-ia-asylum.dmn | 17 ----------------- .../dmn/CamundaTaskConfigurationTest.java | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 1740bdf6..13712128 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1050,23 +1050,6 @@ false - - - - - - "respondToQuery" - - - "roleCategory" - - - "CTSC" - - - false - - diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index d4309752..b2a0e221 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(39)); + assertThat(logic.getRules().size(), is(38)); } @SuppressWarnings("checkstyle:indentation") From 8122f78de6d1b0e71b48700072139ddd86a3e165 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 11:31:04 +0000 Subject: [PATCH 10/36] delete duplicate description in configuration file --- .../wa-task-configuration-ia-asylum.dmn | 20 ++----------------- .../dmn/CamundaTaskConfigurationTest.java | 2 +- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 13712128..b9868bdd 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -679,7 +679,8 @@ then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "editListing") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" @@ -1050,23 +1051,6 @@ false - - - - - - "respondToQuery" - - - "description" - - - "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" - - - false - - diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index b2a0e221..c62a568c 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(38)); + assertThat(logic.getRules().size(), is(37)); } @SuppressWarnings("checkstyle:indentation") From 2a0c51acf92d541903f3c4c20830f267bc646a9a Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 11:44:56 +0000 Subject: [PATCH 11/36] delete duplicate description in configuration file --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index b9868bdd..f0f9b540 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -680,7 +680,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "editListing") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" From 4f5620f3853cad083c6ab65deda983933a1c3c36 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 15:41:52 +0000 Subject: [PATCH 12/36] add line for description --- .../wa-task-configuration-ia-asylum.dmn | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index f0f9b540..d7e835f8 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -680,7 +680,6 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" @@ -1051,6 +1050,40 @@ false + + + + + + "respondToQuery" + + + "description" + + + if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" + + + + + + + + + + + + + + + + + + + + + + From aefae4fae011549c092c3830736988a9206dd5ed Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 15:42:03 +0000 Subject: [PATCH 13/36] add line for description --- .../iataskconfiguration/dmn/CamundaTaskConfigurationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index c62a568c..b2a0e221 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(37)); + assertThat(logic.getRules().size(), is(38)); } @SuppressWarnings("checkstyle:indentation") From f7d4fd3e08fb06e4d6936f948fb1300a294e88ad Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 15:42:32 +0000 Subject: [PATCH 14/36] add line for description --- .../wa-task-configuration-ia-asylum.dmn | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index d7e835f8..b4b7ff55 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1067,23 +1067,6 @@ - - - - - - - - - - - - - - - - - From 0e344c7679e041312f38f94e441f821b38c5a84a Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 15:58:02 +0000 Subject: [PATCH 15/36] add line for description --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index b4b7ff55..6e104166 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1064,7 +1064,7 @@ if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" - + false From 8e5739843e26b5cbb2e1f025bcc2830f401b1f7c Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 16:13:27 +0000 Subject: [PATCH 16/36] add line for description --- .../wa-task-configuration-ia-asylum.dmn | 18 +----------------- .../dmn/CamundaTaskConfigurationTest.java | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 6e104166..f0f9b540 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -680,6 +680,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" @@ -1050,23 +1051,6 @@ false - - - - - - "respondToQuery" - - - "description" - - - if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" - - - false - - diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index b2a0e221..c62a568c 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(38)); + assertThat(logic.getRules().size(), is(37)); } @SuppressWarnings("checkstyle:indentation") From 678a8fe4a3385eef7180002f0e8042477c189fc2 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 17:13:57 +0000 Subject: [PATCH 17/36] add queryId variable --- .../wa-task-configuration-ia-asylum.dmn | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index f0f9b540..cce8cbbe 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1,6 +1,12 @@ - + + + + + + + @@ -591,13 +597,13 @@ then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewRemissionApplication" or taskType != null and taskType = "reviewRemissionApplication") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewRemissionApplication" or taskType != null and taskType = "detainedReviewRemissionApplication") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewASRemission" or taskType != null and taskType = "reviewASRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewASRemission" or taskType != null and taskType = "reviewASRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewLARemission" or taskType != null and taskType = "reviewLARemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewHOWaiverRemission" or taskType != null and taskType = "reviewHOWaiverRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewAuthorityRemission" or taskType != null and taskType = "reviewAuthorityRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewHWFRemission" or taskType != null and taskType = "reviewHWFRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewECRRemission" or taskType != null and taskType = "reviewECRRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewASRemission" or taskType != null and taskType = "detainedReviewASRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewASRemission" or taskType != null and taskType = "detainedReviewASRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewLARemission" or taskType != null and taskType = "detainedReviewLARemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewHOWaiverRemission" or taskType != null and taskType = "detainedReviewHOWaiverRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewAuthorityRemission" or taskType != null and taskType = "detainedReviewAuthorityRemission") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" @@ -679,7 +685,7 @@ then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" @@ -1053,11 +1059,23 @@ + + + + + + + + + + + + From 21bbc04924d0cff28dfed4770f4f3c3b45a7e81c Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Fri, 13 Mar 2026 17:26:35 +0000 Subject: [PATCH 18/36] fix tests --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index cce8cbbe..082451db 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1,12 +1,6 @@ - - - - - - From 15db19fe7927920987d8f704ba944e02e8a444db Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Mon, 16 Mar 2026 09:38:28 +0000 Subject: [PATCH 19/36] fix tests --- .../resources/wa-task-configuration-ia-asylum.dmn | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 082451db..35ab97ea 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1,6 +1,9 @@ + + + @@ -1062,14 +1065,14 @@ - + + + + - - - From f79b5416b4c2330a74e7640e418f9a2203e1069a Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Mon, 16 Mar 2026 10:06:13 +0000 Subject: [PATCH 20/36] update queryId --- .../wa-task-configuration-ia-asylum.dmn | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 35ab97ea..cde80778 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -590,7 +590,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedListTheCase" or taskType != null and taskType = "detainedListTheCase") and (caseData != null and caseData.isIntegrated = "Yes")) then "[List the case](cases/case-details/${[CASE_REFERENCE]}/hearings)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "assignAFTPAJudge" or taskType != null and taskType = "assignAFTPAJudge") then "[Record allocated Judge](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/recordAllocatedJudge)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedAssignAFTPAJudge" or taskType != null and taskType = "detainedAssignAFTPAJudge") then "[Record allocated Judge](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/recordAllocatedJudge)" - else if taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedProcessApplicationAdjourn" or taskType != null and taskType = "detainedProcessApplicationAdjourn)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedProcessApplicationAdjourn" or taskType != null and taskType = "detainedProcessApplicationAdjourn)") then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "reviewRemissionApplication" or taskType != null and taskType = "reviewRemissionApplication") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "detainedReviewRemissionApplication" or taskType != null and taskType = "detainedReviewRemissionApplication") then "[Record remission decision](/cases/case-details/${[CASE_REFERENCE]}/trigger/recordRemissionDecision/recordRemissionDecisionremissionDecision)" @@ -1057,8 +1057,18 @@ - - + + + if taskAttributes = null then null else +{ + "__prefix" : "__processCategory__queryManagement_queryID_", + "__attribute_entries" : get entries(taskAttributes), + "__matching_keys" : for __item in __attribute_entries return if starts with(__item.key, __prefix) then substring(__item.key, string length(__prefix) + 1) else null, + "__filtered_keys" : __matching_keys[item != null], + "__nonempty_keys" : append(__filtered_keys, null), + "__nullable_query_id" : __nonempty_keys[1] +}.__nullable_query_id + From 22feb040a54f3a4e435d3792d5cce95aef43c8ec Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Mon, 16 Mar 2026 11:36:06 +0000 Subject: [PATCH 21/36] update queryID to queryId --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- src/main/resources/wa-task-initiation-ia-asylum.dmn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index cde80778..de14fbd0 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1061,7 +1061,7 @@ if taskAttributes = null then null else { - "__prefix" : "__processCategory__queryManagement_queryID_", + "__prefix" : "__processCategory__queryManagement_queryId_", "__attribute_entries" : get entries(taskAttributes), "__matching_keys" : for __item in __attribute_entries return if starts with(__item.key, __prefix) then substring(__item.key, string length(__prefix) + 1) else null, "__filtered_keys" : __matching_keys[item != null], diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 032531ee..6f22f0c6 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22678,7 +22678,7 @@ - "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId + "qmResponseTasks,queryManagement_queryId_" + additionalData.Data.qmLatestQuery.queryId From 19e2babc1c57ba43e39d71c1bce8b990ae9300e5 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Mon, 16 Mar 2026 14:33:16 +0000 Subject: [PATCH 22/36] update queryId to queryID --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- src/main/resources/wa-task-initiation-ia-asylum.dmn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index de14fbd0..cde80778 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1061,7 +1061,7 @@ if taskAttributes = null then null else { - "__prefix" : "__processCategory__queryManagement_queryId_", + "__prefix" : "__processCategory__queryManagement_queryID_", "__attribute_entries" : get entries(taskAttributes), "__matching_keys" : for __item in __attribute_entries return if starts with(__item.key, __prefix) then substring(__item.key, string length(__prefix) + 1) else null, "__filtered_keys" : __matching_keys[item != null], diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 6f22f0c6..032531ee 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -22678,7 +22678,7 @@ - "qmResponseTasks,queryManagement_queryId_" + additionalData.Data.qmLatestQuery.queryId + "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId From 55eccd3f84a5317f9a05c0d154679cf15bff59bb Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 17 Mar 2026 10:20:02 +0000 Subject: [PATCH 23/36] update URL to have /3/ similar to civil --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index cde80778..8239d548 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/3/" + queryId + ")" else "" From 571c4c3e57e033679a9a8b06d85ec5e4c62269f9 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 17 Mar 2026 10:44:16 +0000 Subject: [PATCH 24/36] revert URL to have /3/ similar to civil --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 8239d548..cde80778 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/3/" + queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" else "" From ec1420ebbd8d71600136a87f668cc08b13908c7e Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 17 Mar 2026 15:28:10 +0000 Subject: [PATCH 25/36] update task completion to queryManagementRespondQuery --- src/main/resources/wa-task-completion-ia-asylum.dmn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/wa-task-completion-ia-asylum.dmn b/src/main/resources/wa-task-completion-ia-asylum.dmn index af4cadd9..f5678a8b 100644 --- a/src/main/resources/wa-task-completion-ia-asylum.dmn +++ b/src/main/resources/wa-task-completion-ia-asylum.dmn @@ -1065,14 +1065,14 @@ "Auto" - - - "queryManagementRaiseQuery" + + + "queryManagementRespondQuery" - + "respondToQuery" - + "Auto" From be897af56c70e29c6eac66678a5a6bb61c48f43a Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 10:19:32 +0000 Subject: [PATCH 26/36] remove queryId from config file --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index cde80778..e057a57d 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]}/" + queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]})" else "" From 0875a7b6b779c3347783dc6c7b6170cd057cc8c1 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 11:57:50 +0000 Subject: [PATCH 27/36] update to "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" + queryId + ")" --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index e057a57d..59fa172b 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query/${[CASE_REFERENCE]})" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" + queryId + ")" else "" From c3ab030b2a47746add6a1ee1ffb830b0b9799518 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 16:03:14 +0000 Subject: [PATCH 28/36] update to "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 59fa172b..ad5b6940 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" + queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" else "" From 884ad4452695c8c2981384741875dbe9ab4d705c Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 17:28:39 +0000 Subject: [PATCH 29/36] update to "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index ad5b6940..e8f696d4 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" else "" From e8b52b0d0684cb8c27cdb14c14719b0ddd5c438d Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 17:50:43 +0000 Subject: [PATCH 30/36] update to "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" caseData.queryId --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index e8f696d4..232dfbd1 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" + caseData.queryId + ")" else "" From 5e7e1b8b691f29f7c5cf9d091a83a57071330817 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 18:19:51 +0000 Subject: [PATCH 31/36] update to caseData.qmLatestQuery.queryId --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 232dfbd1..a1445e35 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" + caseData.queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" + caseData.qmLatestQuery.queryId + ")" else "" From 481a5634541fac9e93e5cf510d77b8ef10632d72 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Wed, 18 Mar 2026 18:31:32 +0000 Subject: [PATCH 32/36] update to caseData.qmLatestQuery.queryId --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index a1445e35..b24b4177 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -683,7 +683,7 @@ else if ((taskAttributes != null and taskAttributes.taskType != null and (taskAttributes.taskType = "processApplicationChangeHearingType" or taskAttributes.taskType = "detainedProcessApplicationChangeHearingType")) or (taskType != null and (taskType = "processApplicationChangeHearingType" or taskType = "detainedProcessApplicationChangeHearingType"))) then "[Decide an application](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/decideAnApplication)" else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "editListing" or taskType != null and taskType = "editListing") then "[Edit case listing](/case/IA/Asylum/${[CASE_REFERENCE]}/trigger/editCaseListing)" - else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/)" + caseData.qmLatestQuery.queryId + ")" + else if (taskAttributes != null and taskAttributes.taskType != null and taskAttributes.taskType = "respondToQuery" or taskType != null and taskType = "respondToQuery") then "[Respond to a query](/query-management/query/${[CASE_REFERENCE]}/3/" + caseData.qmLatestQuery.queryId + ")" else "" From 290284b3e76b7286572b9c1886973c076d0ec4c2 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 24 Mar 2026 13:33:04 +0000 Subject: [PATCH 33/36] update to caseData.qmLatestQuery.queryId --- src/main/resources/wa-task-initiation-ia-asylum.dmn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-initiation-ia-asylum.dmn b/src/main/resources/wa-task-initiation-ia-asylum.dmn index 7e2d8c01..c72e3102 100644 --- a/src/main/resources/wa-task-initiation-ia-asylum.dmn +++ b/src/main/resources/wa-task-initiation-ia-asylum.dmn @@ -1,5 +1,5 @@ - + @@ -22678,7 +22678,7 @@ - "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLatestQuery.queryId + "qmResponseTasks,queryManagement_queryID_" + additionalData.Data.qmLegalRepresentativeQueries.caseMessages.value.id From 3a0c72a10c6614705c459e7f4f7f3028ad473661 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Mon, 30 Mar 2026 14:09:12 +0100 Subject: [PATCH 34/36] add queries_work --- src/main/resources/wa-task-configuration-ia-asylum.dmn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index b24b4177..01ef57a3 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -1048,7 +1048,10 @@ "workType" - "query_work" + if (caseData != null + and caseData.stf24wCurrentStatusAutoGenerated != null + and caseData.stf24wCurrentStatusAutoGenerated = "Yes") + then "queries_stf" else "queries" false From f665653ca0a435e938e1666cfd46105bcc3b1c05 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 31 Mar 2026 16:28:32 +0100 Subject: [PATCH 35/36] change respondToQuery to a different work type --- .../wa-task-configuration-ia-asylum.dmn | 22 +------------------ .../dmn/CamundaTaskConfigurationTest.java | 2 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 01ef57a3..1c6c66c0 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -392,7 +392,7 @@ - "reviewMigratedCase","detainedReviewMigratedCase" + "reviewMigratedCase","detainedReviewMigratedCase", "respondToQuery" "workType" @@ -1037,26 +1037,6 @@ true - - - - - - "respondToQuery" - - - "workType" - - - if (caseData != null - and caseData.stf24wCurrentStatusAutoGenerated != null - and caseData.stf24wCurrentStatusAutoGenerated = "Yes") - then "queries_stf" else "queries" - - - false - - diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index c62a568c..e4ef7296 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(37)); + assertThat(logic.getRules().size(), is(36)); } @SuppressWarnings("checkstyle:indentation") From 1a33255230a61925268597b5ba4a07a8b0d4d824 Mon Sep 17 00:00:00 2001 From: tiagreaney Date: Tue, 31 Mar 2026 16:37:39 +0100 Subject: [PATCH 36/36] change respondToQuery to queries and queries_stf work type --- .../wa-task-configuration-ia-asylum.dmn | 23 ++++++++++++++++++- .../dmn/CamundaTaskConfigurationTest.java | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-configuration-ia-asylum.dmn b/src/main/resources/wa-task-configuration-ia-asylum.dmn index 1c6c66c0..6bf0d1b5 100644 --- a/src/main/resources/wa-task-configuration-ia-asylum.dmn +++ b/src/main/resources/wa-task-configuration-ia-asylum.dmn @@ -392,7 +392,7 @@ - "reviewMigratedCase","detainedReviewMigratedCase", "respondToQuery" + "reviewMigratedCase","detainedReviewMigratedCase" "workType" @@ -1037,6 +1037,27 @@ true + + + + + + "respondToQuery" + + + "workType" + + + if (caseData != null + and caseData.stf24wCurrentStatusAutoGenerated != null + and caseData.stf24wCurrentStatusAutoGenerated = "Yes") + then "queries_stf" + else "queries" + + + true + + diff --git a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java index e4ef7296..c62a568c 100644 --- a/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/iataskconfiguration/dmn/CamundaTaskConfigurationTest.java @@ -73,7 +73,7 @@ void when_taskId_then_return_Access_Requests(String taskType) { void if_this_test_fails_needs_updating_with_your_changes() { //The purpose of this test is to prevent adding new rows without being tested DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); - assertThat(logic.getRules().size(), is(36)); + assertThat(logic.getRules().size(), is(37)); } @SuppressWarnings("checkstyle:indentation")