fixes
This commit is contained in:
parent
fb299896d2
commit
98086a9225
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue