Source:
<code>private void processProcessHierarchy() { for (TempProcess tempProcess : this.processes) { if (this.processes.indexOf(tempProcess) == 0) { continue; } ProcessFieldedMetadata metadata = this.getProcessMetadataTab().initializeProcessDetails( tempProcess.getWorkpiece().getRootElement()); String docType = tempProcess.getWorkpiece().getRootElement().getType(); ImportService.fillProcessDetails(metadata, tempProcess.getMetadataNodes(), this.rulesetManagementInterface, docType , this.acquisitionStage, this.priorityList); try { metadata.preserve(); } catch (InvalidMetadataValueException | NoSuchMetadataFieldException e) { Helper.setErrorMessage(e.getLocalizedMessage(), logger, e); } try { String atstsl = ProcessService.generateProcessTitle("", metadata.getRows(), <START> this.processDataTab.getTitleDefinition(), tempProcess.getProcess()); <END> String tiffHeader = ProcessService.generateTiffHeader(metadata.getRows(), atstsl, this.processDataTab.getTiffDefinition(), docType); addProperties(tempProcess.getProcess(), metadata.getRows(), docType, tiffHeader); updateTasks(tempProcess.getProcess()); } catch (ProcessGenerationException e) { Helper.setErrorMessage(e.getLocalizedMessage(), logger, e); } } }</code><technical_language>I prepare() method in ProcessDataTab.java moved ProcessService.java 'tiffDefinition' 'titleDefinition' for processes</technical_language>

Target:
private void processProcessHierarchy() throws ProcessGenerationException { for (TempProcess tempProcess : this.processes) { Process process = tempProcess.getProcess(); List<ProcessDetail> processDetails; String docType; String tiffHeader; int index = this.processes.indexOf(tempProcess); if (index < this.processes.size() - 1) { ProcessService.setParentRelations(this.processes.get(index + 1).getProcess(), process); } if (this.processes.indexOf(tempProcess) == 0) { processDetails = processMetadataTab.getProcessDetailsElements(); docType = processDataTab.getDocType(); tiffHeader = processDataTab.getTiffHeaderImageDescription(); process.setSortHelperImages(processDataTab.getGuessedImages()); if (!ProcessValidator.isContentValid(process.getTitle(), processDetails, true)) { throw new ProcessGenerationException("Error creating process hierarchy: invalid process content!"); } processMetadataTab.preserve(); } else { ProcessFieldedMetadata metadata = this.getProcessMetadataTab().initializeProcessDetails( tempProcess.getWorkpiece().getRootElement()); docType = tempProcess.getWorkpiece().getRootElement().getType(); ImportService.fillProcessDetails(metadata, tempProcess.getMetadataNodes(), this.rulesetManagementInterface, docType, this.acquisitionStage, this.priorityList); try { metadata.preserve(); } catch (InvalidMetadataValueException | NoSuchMetadataFieldException e) { Helper.setErrorMessage(e.getLocalizedMessage(), logger, e); } processDetails = metadata.getRows(); try { String atstsl = ProcessService.generateProcessTitle("", processDetails, ServiceManager.getImportService().getTitleDefinition(), process); tiffHeader = ProcessService.generateTiffHeader(processDetails, atstsl, ServiceManager.getImportService().getTiffDefinition(), docType); } catch (ProcessGenerationException e) { Helper.setErrorMessage(e.getLocalizedMessage(), logger, e); tiffHeader = ""; } } addProperties(process, processDetails, docType, tiffHeader); updateTasks(process); } }