public class DocCreator extends Object
Constructor and Description |
---|
DocCreator() |
Modifier and Type | Method and Description |
---|---|
void |
create(HttpServletRequest req,
HttpServletResponse res)
Task function for creating an office document.
|
boolean |
create(String template,
String templatefield,
String format,
String docname)
System step or postcondition for creating a document.
|
public void create(HttpServletRequest req, HttpServletResponse res) throws Exception
Exception
public boolean create(String template, String templatefield, String format, 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.
The following placeholders (in curly braces) can be used: ou for organizational unit, id for process id,
process for process definition name and subject for process instance subject. e.g. Docname-{id}.@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.