fixes
This commit is contained in:
parent
34490e268a
commit
fb299896d2
|
@ -11,7 +11,7 @@ import java.time.Instant;
|
|||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "\"DescriptionWorkflowEntity\"")
|
||||
@Table(name = "\"DescriptionWorkflow\"")
|
||||
public class DescriptionWorkflowEntity extends TenantScopedBaseEntity {
|
||||
@Id
|
||||
@Column(name = "id", columnDefinition = "uuid", updatable = false, nullable = false)
|
||||
|
|
|
@ -14,9 +14,14 @@ import org.opencdmp.data.DescriptionWorkflowEntity;
|
|||
import org.opencdmp.model.builder.BaseBuilder;
|
||||
import org.opencdmp.model.descriptionworkflow.DescriptionWorkflow;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@Component
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public class DescriptionWorkflowBuilder extends BaseBuilder<DescriptionWorkflow, DescriptionWorkflowEntity> {
|
||||
|
||||
private EnumSet<AuthorizationFlags> authorize = EnumSet.of(AuthorizationFlags.None);
|
||||
|
|
|
@ -16,10 +16,15 @@ import org.opencdmp.model.descriptionstatus.DescriptionStatus;
|
|||
import org.opencdmp.model.descriptionworkflow.DescriptionWorkflowDefinition;
|
||||
import org.opencdmp.query.DescriptionStatusQuery;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Component
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public class DescriptionWorkflowDefinitionBuilder extends BaseBuilder<DescriptionWorkflowDefinition, DescriptionWorkflowDefinitionEntity> {
|
||||
|
||||
|
||||
|
|
|
@ -81,6 +81,7 @@ public class DescriptionWorkflowServiceImpl implements DescriptionWorkflowServic
|
|||
data.setCreatedAt(Instant.now());
|
||||
}
|
||||
|
||||
data.setUpdatedAt(Instant.now());
|
||||
data.setName(model.getName());
|
||||
data.setDescription(model.getDescription());
|
||||
data.setDescription(this.xmlHandlingService.toXmlSafe(this.buildDescriptionWorkflowDefinitionEntity(model.getDefinition())));
|
||||
|
|
Loading…
Reference in New Issue