Language: Deutsch · English
Which rule runs when? The order of API rules per action – create, edit, delete, clone, job, print.
REFERENZ DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X
On this page
Purpose
Overview of the order in which the API rules assigned to a BO run, depending on the action.
UpdateRule (main BO) → mandatory checks main/subform → UpdateFinalRule (main BO).
Subform records are deleted along with the parent (from Nuclos 4.38 only with delete cascade on the reference attribute); DeleteRules run for subform BOs only with their own status model.
| Action | Order |
|---|---|
| Clone | Generate → GenerateFinal → form → save → Insert → InsertFinal |
| User action | CustomRule → (UpdateRule → UpdateFinalRule) |
| Object generation | GenerateRule → InsertRule → InsertFinalRule → GenerateFinalRule |
| PrintRule → PrintFinalRule | |
| Job | JobRule |
| REST service | CustomRestRule |
User action & save()
For user actions, context.setUpdateAfterExecution(...) controls whether a save follows. To perform status changes or save() calls from the CustomRule, the value must be false.