This commit is contained in:
CITE\spapacharalampous 2024-08-27 11:17:41 +03:00
parent fb299896d2
commit 98086a9225
1 changed files with 2 additions and 2 deletions

View File

@ -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<DescriptionWorkflowDefinitionTransitionEntity> transitionData = this.buildDescriptionWorkflowDefinitionTransitionEntities(persist.getStatusTransitions());
data.setStatusTransitions(transitionData);