Issue 1271: 	DSpace transfer fails at Verify transfer compliance unless it is pre-formatted with objects, logs and metadata directories
Issue 1271: 	DSpace transfer fails at Verify transfer compliance unless it is pre-formatted with objects, logs and metadata directories

-- create new link to perform & next task = destination --
SET @resume = '45063ad6-f374-4215-a2c4-ac47be4ce2cd';

SET @newLink = 'aa9ba088-0b1e-4962-a9d7-79d7a0cbea2d';
SET @taskConfig = 'dde8c13d-330e-458b-9d53-0937370695fa';
SET @microserviceGroup = 'Verify transfer compliance';
INSERT INTO MicroServiceChainLinks (pk, currentTask, defaultNextChainLink, microserviceGroup)
    VALUES (@newLink, @taskConfig, @resume, @microserviceGroup);

-- update tasks where next lin = 45063ad6-f374-4215-a2c4-ac47be4ce2cd to new link --
update MicroServiceChainLinks SET defaultNextChainLink = @newLink WHERE pk != @newLink AND defaultNextChainLink = @resume;
UPDATE MicroServiceChainLinksExitCodes SET nextMicroServiceChainLink = @newLink WHERE nextMicroServiceChainLink = @resume;

SET @MicroServiceChainLinksExitCodes = '65409432-a449-4455-8eb2-5cc28af16958';
INSERT INTO MicroServiceChainLinksExitCodes (pk, microServiceChainLink, exitCode, nextMicroServiceChainLink, exitMessage)
    VALUES (@MicroServiceChainLinksExitCodes, @newLink, 0, @resume, 'Completed successfully');

michal-ruzicka/archivematica,michal-ruzicka/archivematica,sevein/archivematica,artefactual/archivematica,eckardm/archivematica,sevein/archivematica,sevein/archivematica,eckardm/archivematica,artefactual/archivematica,michal-ruzicka/archivematica,artefactual/archivematica,michal-ruzicka/archivematica,sevein/archivematica,eckardm/archivematica,eckardm/archivematica,artefactual/archivematica