Hallo,
wir nutzen bei uns im Projekt ExportOperation für das exportieren der Templates.
Dafür haben wir folgende Executable geschrieben:
@Override
public Object execute(Map<String, Object> executionContext, Writer stdOut, Writer stdErr) throws ExecutionException {
ClientScriptContext context = (ClientScriptContext) executionContext.get("context");
FileSystemsAgent fileSystemsAgent = context.requireSpecialist(FileSystemsAgent.TYPE);
FileSystem fileSystem = fileSystemsAgent.getOSFileSystem("D:/tmp/template-store-dump");
BrokerAgent brokerAgent = context.requestSpecialist(BrokerAgent.TYPE);
SpecialistsBroker specialistsBroker = brokerAgent.getBrokerByProjectName(context.getProject().getName());
OperationAgent operationAgent = specialistsBroker.requestSpecialist(OperationAgent.TYPE);
ExportOperation exportOperation = operationAgent.getOperation(ExportOperation.TYPE);
exportOperation.setExportChildElements(true);
exportOperation.setDeleteObsoleteFiles(true);
StoreAgent storeAgent = context.requireSpecialist(StoreAgent.TYPE);
TemplateStoreRoot templateStore = (TemplateStoreRoot) storeAgent.getStore(Store.Type.TEMPLATESTORE, false);
Schema schema = templateStore.getSchemes().getSchemaByName("common");
exportOperation.addElement(templateStore);
exportOperation.addSchema(schema);
try {
exportOperation.perform(fileSystem);
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
und das hat eine Zeit lang gut funktioniert.
Seitdem wir auf die FirstSpirit Version 5.2.717.75840 upgedated haben kommt eine Warning Log-Message:
WARN 03.07.2017 09:58:25.477 (de.espirit.firstspirit.store.access.nexport.exporter.ChannelSourceExporter): PresentationChannel for TemplateSet 'html' is null.
und es wird kein HTML-Channel des Templates mehr exportiert.
Habt ihr eine Idee woran es liegen könnte?
Vielen Dank im Voraus!
Grüße
Danil.