diff --git a/src/main/resources/validationrules/sscs/sscs-judicial-org-role-mapping.drl b/src/main/resources/validationrules/sscs/sscs-judicial-org-role-mapping.drl index 96daf06f8..f16411023 100644 --- a/src/main/resources/validationrules/sscs/sscs-judicial-org-role-mapping.drl +++ b/src/main/resources/validationrules/sscs/sscs-judicial-org-role-mapping.drl @@ -107,7 +107,8 @@ then attribute.put("contractType", JacksonUtils.convertObjectIntoJsonNode("Fee-Paid")); attribute.put("workTypes", JacksonUtils.convertObjectIntoJsonNode("pre_hearing,hearing_work,post_hearing," + "decision_making_work,routine_work,priority")); - attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($bk.getRegionId())); + attribute.put("region", JacksonUtils.convertObjectIntoJsonNode($bk.getRegionId() != null ? + $bk.getRegionId():$joh.getRegionId())); insert( RoleAssignment.builder() .actorIdType(ActorIdType.IDAM)