Errors about single step transformer being defined in a T-Engine were not being issued, because the baseUrl was set to "---" in the router.

This commit is contained in:
alandavis
2022-09-13 15:42:19 +01:00
parent d17a26e236
commit 6fc618a31c
2 changed files with 5 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ public class TransformConfigFromFiles
{
String filename = resource.getFilename();
transformConfigSources.add(
new AbstractTransformConfigSource(filename, filename,(isTRouter ? "---" : null))
new AbstractTransformConfigSource(filename, filename, isTRouter ? null : "---")
{
@Override public TransformConfig getTransformConfig()
{

View File

@@ -29,6 +29,7 @@ package org.alfresco.transform.base.registry;
import org.alfresco.transform.base.TransformEngine;
import org.alfresco.transform.config.TransformConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@@ -44,6 +45,8 @@ public class TransformConfigFromTransformEngines
private List<TransformEngine> transformEngines;
@Autowired
private List<TransformConfigSource> transformConfigSources;
@Value("${container.isTRouter}")
private boolean isTRouter;
@PostConstruct
public void initTransformEngineConfig()
@@ -57,7 +60,7 @@ public class TransformConfigFromTransformEngines
{
String engineName = transformEngine.getTransformEngineName();
transformConfigSources.add(
new AbstractTransformConfigSource(engineName, engineName,null)
new AbstractTransformConfigSource(engineName, engineName, isTRouter ? null : "---")
{
@Override public TransformConfig getTransformConfig()
{