globe with meridians Language: Deutsch · English

open book PrintoutProvider

Run forms from rules – run(format, boId) returns a NuclosFile.

REFERENZ DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X

On this page

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.

run(format, boId[, params])

Runs the form and returns a NuclosFile (e.g. as an attachment or for e-mail). Parameters can optionally be passed as a Map.

public static NuclosFile run(OutputFormat format, Long boId) throws BusinessException;
public static NuclosFile run(OutputFormat format, Long boId, Map<String, Object> params) throws BusinessException;
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");
    }
}

Report vs. form

For reports (without a record reference) see ReportProvider.

Related pages

open book ReportProvider


Run reports.

Open →

gear QueryProvider


Daten laden.

Open →

gear BusinessObjectProvider


BOs schreiben.

Open →

  • Keine Stichwörter