Repository: odpi/egeria
Issue: [BUG] Code fix for Egerai UI issue326

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

See EgeriaUI issue326 [https://github.com/odpi/egeria-react-ui/issues/326](https://github.com/odpi/egeria-react-ui/issues/326) 


### Expected Behavior

Expected that the isA Relation is successfully created .

### Steps To Reproduce

Testing Egeria 3.5 chart

    Egeria 3.5
    React UI 3.4

Logged in as garygeeke

Created a glossary 'a'
Created a category 'b'
Created two terms in above 'c', 'd'

All good to this point

I then tried to create a 'isA' relationship 'r' between c and d using the visual explorer

In the UI I got to the final screen, clicked create, and the page refreshed but no error/info was shown
In the log of the view server I see a Bad Request:
Full log at https://gist.github.com/e9bd7053cdcb056c85b24b53dbfcfa4e

### Environment

```markdown
- Egeria:
- OS:
- Java:
- Browser (for UI issues):
- Additional connectors and integration:
```


### Any Further Information?

The REST call error outs for a NULL point exception returning a Http code 400

Changed files:
open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/utilities/SubjectAreaUtils.java
open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/IsARelationshipMapper.java

diff --git a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/IsARelationshipMapper.java b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/IsARelationshipMapper.java
index f894ab2ddb..e47e905972 100644
--- a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/IsARelationshipMapper.java
+++ b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/server/mappers/relationships/IsARelationshipMapper.java
@@ -44,9 +44,7 @@ public class IsARelationshipMapper extends RelationshipMapper<IsA> {
             SubjectAreaUtils.setStringPropertyInInstanceProperties(instanceProperties, iSARelationship.getSource(), OpenMetadataAPIMapper.SOURCE_PROPERTY_NAME);
         }
         if (iSARelationship.getStatus() != null) {
-            EnumPropertyValue enumPropertyValue = new EnumPropertyValue();
-            enumPropertyValue.setOrdinal(iSARelationship.getStatus().getOrdinal());
-            instanceProperties.setProperty(OpenMetadataAPIMapper.STATUS_PROPERTY_NAME, enumPropertyValue);
+            SubjectAreaUtils.setStatusPropertyInInstanceProperties(instanceProperties, iSARelationship.getStatus(), OpenMetadataAPIMapper.STATUS_PROPERTY_NAME);
         }
     }
 
diff --git a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/utilities/SubjectAreaUtils.java b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/utilities/SubjectAreaUtils.java
index 09d9ce79f7..57953c5ddc 100644
--- a/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/utilities/SubjectAreaUtils.java
+++ b/open-metadata-implementation/access-services/subject-area/subject-area-server/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/utilities/SubjectAreaUtils.java
@@ -6,6 +6,7 @@ package org.odpi.openmetadata.accessservices.subjectarea.utilities;
 import org.odpi.openmetadata.accessservices.subjectarea.ffdc.SubjectAreaErrorCode;
 import org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.InvalidParameterException;
 import org.odpi.openmetadata.accessservices.subjectarea.properties.enums.Status;
+import org.odpi.openmetadata.accessservices.subjectarea.properties.enums.TermRelationshipStatus;
 import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category;
 import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes;
 import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary;
@@ -18,6 +19,7 @@ import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.nodes
 import org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.CategoryAnchor;
 import org.odpi.openmetadata.accessservices.subjectarea.properties.relationships.TermAnchor;
 import org.odpi.openmetadata.accessservices.subjectarea.responses.SubjectAreaOMASAPIResponse;
+import org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIMapper;
 import org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition;
 import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.*;
 import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.PrimitiveDefCategory;
@@ -305,4 +307,18 @@ public class SubjectAreaUtils {
         response.addAllResults(icons);
         return response;
     }
+
+    /**
+     * Set status values into instance properties.
+     *
+     * @param instanceProperties supplied instanceproperties
+     * @param status               Status value
+     * @param propertyName       property name
+     */
+    public static void setStatusPropertyInInstanceProperties(InstanceProperties instanceProperties, TermRelationshipStatus status, String propertyName) {
+        EnumPropertyValue enumPropertyValue = new EnumPropertyValue();
+        enumPropertyValue.setOrdinal(status.getOrdinal());
+        enumPropertyValue.setSymbolicName(status.getName());
+        instanceProperties.setProperty(propertyName, enumPropertyValue);
+    }
 }
\\ No newline at end of file