Language: Deutsch · English
Run generation steps from rules – type-safe via execute().
REFERENZ DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X
On this page
The GenerationProvider executes a generation step programmatically – e.g. „create invoice from order“.
Runs the generation step. Source and generated step class (from the generation.jar) must be type-compatible; returns the created target BO.
public static <S extends BusinessObject, T extends BusinessObject> T
execute(S s, Class<? extends Generation<S,T>> genClass) throws BusinessException;
import org.nuclos.api.provider.GenerationProvider;
public class AuftragAbschliessen implements UpdateFinalRule {
public void updateFinal(UpdateContext context) throws BusinessException {
Auftrag a = context.getBusinessObject(Auftrag.class);
Rechnung r = GenerationProvider.execute(a, ErstelleRechnungAusAuftragGEN.class);
}
}
Type safety
Due to type safety, wrong source/target types cause compile errors in the rule.