diff --git a/backend/core/src/main/java/org/opencdmp/service/descriptionworkflow/DescriptionWorkflowServiceImpl.java b/backend/core/src/main/java/org/opencdmp/service/descriptionworkflow/DescriptionWorkflowServiceImpl.java index a2429a28d..0b72412ea 100644 --- a/backend/core/src/main/java/org/opencdmp/service/descriptionworkflow/DescriptionWorkflowServiceImpl.java +++ b/backend/core/src/main/java/org/opencdmp/service/descriptionworkflow/DescriptionWorkflowServiceImpl.java @@ -84,7 +84,7 @@ public class DescriptionWorkflowServiceImpl implements DescriptionWorkflowServic data.setUpdatedAt(Instant.now()); data.setName(model.getName()); data.setDescription(model.getDescription()); - data.setDescription(this.xmlHandlingService.toXmlSafe(this.buildDescriptionWorkflowDefinitionEntity(model.getDefinition()))); + data.setDefinition(this.xmlHandlingService.toXmlSafe(this.buildDescriptionWorkflowDefinitionEntity(model.getDefinition()))); if (isUpdate) this.entityManager.merge(data); @@ -109,7 +109,7 @@ public class DescriptionWorkflowServiceImpl implements DescriptionWorkflowServic DescriptionWorkflowDefinitionEntity data = new DescriptionWorkflowDefinitionEntity(); if (persist == null) return data; - data.setStartingStatusId(data.getStartingStatusId()); + data.setStartingStatusId(persist.getStartingStatusId()); List transitionData = this.buildDescriptionWorkflowDefinitionTransitionEntities(persist.getStatusTransitions()); data.setStatusTransitions(transitionData);