diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP
index 7d94fdb8..fdedf6ac 100644
--- a/Jenkinsfile_CNP
+++ b/Jenkinsfile_CNP
@@ -11,7 +11,7 @@ def branchesToSync = ['demo', 'perftest', "ithc"]
withCamundaOnlyPipeline(type, product, component, s2sServiceName, tenantId) {
- afterSuccess('test') {
+ afterAlways('test') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/reports/tests/**/*'
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/reports/tests/integration/**/*'
}
diff --git a/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn b/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
index b28e631b..54af68d4 100644
--- a/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
@@ -671,7 +671,7 @@
- "manageOrders","serviceOfApplication","createBundle","adminEditAndApproveAnOrder","returnApplication","sendOrReplyToMessages","adminRemoveLegalRepresentativeC100","adminRemoveLegalRepresentativeFL401","c100ManageFlags","fl401ManageFlags","statementOfService"
+ "manageOrders","serviceOfApplication","createBundle","adminEditAndApproveAnOrder","returnApplication","sendOrReplyToMessages","adminRemoveLegalRepresentativeC100","adminRemoveLegalRepresentativeFL401","c100ManageFlags","fl401ManageFlags","statementOfService","confidentialityCheck"
diff --git a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
index 20924a07..d0e72bfb 100644
--- a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
@@ -6205,6 +6205,154 @@ and additionalData.Data.isHearingTaskNeeded != null) then
"reviewDocsFL401"
+
+
+ "citizen-case-update"
+
+
+
+
+
+ "C100"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "CITIZEN"
+
+
+ "True"
+
+
+
+
+
+ "reviewDocumentsForSolAndCafcassC100"
+
+
+ "Review Documents"
+
+
+
+
+
+ "reviewDocsC100"
+
+
+
+
+ "citizen-case-update"
+
+
+
+
+
+ "FL401"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "CITIZEN"
+
+
+ "True"
+
+
+
+
+
+ "reviewDocumentsForSolAndCafcassFL401"
+
+
+ "Review Documents"
+
+
+
+
+
+ "reviewDocsFL401"
+
+
"c100RequestSupport"
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/DmnDecisionTable.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/DmnDecisionTable.java
index 984024d8..42a7ef02 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/DmnDecisionTable.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/DmnDecisionTable.java
@@ -9,7 +9,18 @@ public enum DmnDecisionTable {
WA_TASK_CONFIGS("wa-task-configuration-privatelaw-prlapps", "wa-task-configuration-privatelaw-prlapps.dmn"),
WA_TASK_INITIATION("wa-task-initiation-privatelaw-prlapps", "wa-task-initiation-privatelaw-prlapps.dmn"),
WA_TASK_PERMISSION("wa-task-permissions-privatelaw-prlapps", "wa-task-permissions-privatelaw-prlapps.dmn"),
- WA_TASK_TASKTYPEFILTER("wa-task-types-privatelaw-prlapps", "wa-task-types-privatelaw-prlapps.dmn");
+ WA_TASK_TASKTYPEFILTER("wa-task-types-privatelaw-prlapps", "wa-task-types-privatelaw-prlapps.dmn"),
+
+ WA_TASK_COMPLETION_EXCEPTION_RECORD("wa-task-completion-privatelaw-privatelaw_exceptionrecord",
+ "wa-task-completion-privatelaw-privatelaw_exceptionrecord.dmn"),
+ WA_TASK_CONFIGS_EXCEPTION_RECORD("wa-task-configuration-privatelaw-privatelaw_exceptionrecord",
+ "wa-task-configuration-privatelaw-privatelaw_exceptionrecord.dmn"),
+ WA_TASK_INITIATION_EXCEPTION_RECORD("wa-task-initiation-privatelaw-privatelaw_exceptionrecord",
+ "wa-task-initiation-privatelaw-privatelaw_exceptionrecord.dmn"),
+ WA_TASK_PERMISSION_EXCEPTION_RECORD("wa-task-permissions-privatelaw-privatelaw_exceptionrecord",
+ "wa-task-permissions-privatelaw-privatelaw_exceptionrecord.dmn"),
+ WA_TASK_TASKTYPEFILTER_EXCEPTION_RECORD("wa-task-types-privatelaw-privatelaw_exceptionrecord",
+ "wa-task-types-privatelaw-privatelaw_exceptionrecord.dmn");
@JsonValue
private final String key;
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionForExceptionRecordTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionForExceptionRecordTest.java
new file mode 100644
index 00000000..28ecf4a1
--- /dev/null
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionForExceptionRecordTest.java
@@ -0,0 +1,66 @@
+package uk.gov.hmcts.reform.prl.taskconfiguration.dmn;
+
+import org.camunda.bpm.dmn.engine.DmnDecisionTableResult;
+import org.camunda.bpm.dmn.engine.impl.DmnDecisionTableImpl;
+import org.camunda.bpm.engine.variable.VariableMap;
+import org.camunda.bpm.engine.variable.impl.VariableMapImpl;
+import org.hamcrest.MatcherAssert;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
+import uk.gov.hmcts.reform.prl.taskconfiguration.DmnDecisionTableBaseUnitTest;
+
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Stream;
+
+import static java.util.Arrays.asList;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static uk.gov.hmcts.reform.prl.taskconfiguration.DmnDecisionTable.WA_TASK_COMPLETION_EXCEPTION_RECORD;
+
+class CamundaTaskCompletionForExceptionRecordTest extends DmnDecisionTableBaseUnitTest {
+
+ @BeforeAll
+ public static void initialization() {
+ CURRENT_DMN_DECISION_TABLE = WA_TASK_COMPLETION_EXCEPTION_RECORD;
+ }
+
+ static Stream scenarioProvider() {
+
+ return Stream.of(
+ Arguments.of(
+ "createException",
+ asList(
+ Map.of(
+ "taskType", "reviewExceptionBulkScanRecord",
+ "completionMode", "Auto"
+ )
+ )
+ )
+ );
+ }
+
+ @ParameterizedTest(name = "event id: {0} post event state: {1}")
+ @MethodSource("scenarioProvider")
+ void event_ids_should_evaluate_dmn(String eventId, List