From 98086a92256709cd61bde403ebcf44c789fdee1e Mon Sep 17 00:00:00 2001 From: "CITE\\spapacharalampous" Date: Tue, 27 Aug 2024 11:17:41 +0300 Subject: [PATCH] fixes --- .../descriptionworkflow/DescriptionWorkflowServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);