Vorlage über die Java-API einer neuen Dokumentspezifikationen hinzufügen

Bevor Sie Vorlagen einer Dokumentspezifikation hinzufügen können, müssen Sie die API von Rational Publishing Engine initialisieren. Weitere Informationen finden Sie unter Java-API von Rational Publishing Engine initialisieren und vorbereiten.
DocumentSpecificationBuilder builder = new DocumentSpecificationBuilder();
URI configURI = new File( AppUtils.getConfigFilePath()).toURI();
RPEDocumentSpecification docSpec = builder.create(configURI.toString());
			
RPETemplate template = builder.loadTemplate( configURI.toString(), new
File("c:\\Test\\Beispiel.dta").getAbsolutePath());

docSpec.getRuntime().addTemplate( template);

Feedback