connex.flush();
Document.Properties dprop = new Document.Properties();
- Publication credoc = step.createDocument(dprop.setName(docname)
+ Publication credoc = getStepService().createDocument(step, dprop.setName(docname)
.setType(type).setFormat(format).setAuthor(user));
// Writing the uploaded file into the created document
File target = credoc.getSourceFile().asFile();
if (summary.length() > 0)
dprop.setDescription(summary);
- Publication next = step.versionDocument(current, dprop);
+ Publication next = getStepService().versionDocument(step, current, dprop);
// Writing the uploaded file into the created document
File target = next.getSourceFile().asFile();