| Auszug |
|---|
|
Nuclos PrintoutProvider: run, OutputFormat, boId, NuclosFile, form, PDF, insertAttachment. |
Language: Deutsch · English
PrintoutProvider
Run forms from rules – run(format, boId) returns a NuclosFile.
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
What is the PrintoutProvider for?
The PrintoutProvider executes a form. Unlike a report, a form is filled with data – so besides the output format the record id is passed.
Runs the form and returns a NuclosFile (e.g. as an attachment or for e-mail). Parameters can optionally be passed as a Map.
| Codeblock |
|---|
|
public static NuclosFile run(OutputFormat format, Long boId) throws BusinessException;
public static NuclosFile run(OutputFormat format, Long boId, Map<String, Object> params) throws BusinessException; |
| Codeblock |
|---|
|
package org.nuclet.businessentity;
import org.nuclet.printout.FormularAngebotFuerKundenPO;
import org.nuclos.api.common.NuclosFile;
import org.nuclos.api.provider.PrintoutProvider;
import org.nuclos.api.rule.UpdateRule;
import org.nuclos.api.context.UpdateContext;
import org.nuclos.api.annotation.Rule;
import org.nuclos.api.exception.BusinessException;
public class AngebotFormularRegel implements UpdateRule {
public void update(UpdateContext context) throws BusinessException {
Auftrag a = context.getBusinessObject(Auftrag.class);
NuclosFile result = PrintoutProvider.run(FormularAngebotFuerKundenPO.Deutsch_PDF, a.getKunde);
a.insertAttachment(result, "Kommentar: Kundenspezifisches Hinweis-Formular");
}
} |
Related pages
ReportProvider
Run reports.
Open →
QueryProvider
Daten laden.
Open →
BusinessObjectProvider
BOs schreiben.
Open →