...
Create two Document Transfer Object (using record) that contains all data:
Code Block |
---|
|
public record CompositionDto(UUID compositionId, ToscaConceptIdentifier elementDefinitionId, Map<String, Object> inProperties, Map<String, Object> outProperties)
public record InstanceElementDto(UUID instanceId, UUID elementId, Map<String, Object> inProperties, Map<String, Object> outProperties) |
|
Code Block |
---|
|
/**
* Migrate a automation composition element.
*
* @param compositionDtocompositionElement the old composition element, if new element elementDefinitionId will be null
* @param instanceElementDtocompositionElementTarget the oldcomposition instanceelement elementtarget, if newremoved element elementIdelementDefinitionId will be null
* @param compositiontargetDtoinstanceElement the old compositioninstance targetelement, if removednew element elementDefinitionIdelementId will be null
* @param instanceElementMigrateDtoinstanceElementMigrate the instance element with removed properties, if new element elementId will be null
*/
@Override
public void migratemigratePrecheck(CompositionDtoCompositionElementDto compositionDtocompositionElement, InstanceElementDtoCompositionElementDto instanceElementDto, CompositionDto compositiontargetDtocompositionElementTarget,
InstanceElementDto instanceElement, InstanceElementDto instanceElementMigrateDtoinstanceElementMigrate) throws PfModelException {
} |
...