in src/main/java/com/epam/fonda/entity/configuration/orchestrator/MasterScript.java [124:150]
public void addScript(final String sampleName, final ScriptType type, final String script) {
if (StringUtils.isBlank(script)) {
return;
}
if (!scriptsBySample.containsKey(sampleName)) {
final Map<ScriptType, List<String>> scriptsByProcess = new HashMap<>();
scriptsBySample.put(sampleName, scriptsByProcess);
}
switch (type) {
case ALIGNMENT:
putScript(sampleName, ALIGNMENT, script);
break;
case SECONDARY:
putScript(sampleName, SECONDARY, script);
break;
case POST_ALIGNMENT:
putScript(sampleName, POST_ALIGNMENT, script);
break;
case POST_PROCESS:
postProcessScripts.add(script);
break;
case TEMP:
cleanupTempFiles.add(script);
break;
default: throw new IllegalArgumentException(format("Requested %s script type is not allowed", type));
}
}