public class DocCreator
extends java.lang.Object
Constructor and Description |
---|
DocCreator() |
Modifier and Type | Method and Description |
---|---|
void |
create(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Task function for creating an office document.
|
boolean |
create(java.lang.String template,
java.lang.String templatefield,
java.lang.String format,
java.lang.String docname)
System step or postcondition for creating a document.
|
public void create(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public boolean create(java.lang.String template, java.lang.String templatefield, java.lang.String format, java.lang.String docname)
template
- the path to an odt document in the DMS
Specify the complete path, for example COMMON/templates/templ1.odttemplatefield
- optionally you can specify a field (formid.fieldid), that contains the template name.
The complete path is then built in the following way: template + "/" + formfield-value + ".odt"format
- pdf, odt or docdocname
- the name of the resulting document, if it should be attached to the process@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.