@RuleType(name="nuclos.ruletype.insertrule.name", description="nuclos.ruletype.insertrule.description") public interface InsertRule
InsertRule
is the interface that should be used to make an rule
applicable for Insert-Events.
Classes implementing this interface can be attached to entities. In case of an Insert-Event the method insert is called.
InsertContext
Modifier and Type | Method and Description |
---|---|
void |
insert(InsertContext context)
InsertContext is the context providing all insert - relevant attributes and methods. |
void insert(InsertContext context) throws BusinessException
InsertContext
is the context providing all insert - relevant attributes and methods.
To get the BusinessObject
the method getBusinessObject() can be called.
Note: Only BusinessObject
/ Entities that are modifiable can be used in Insert-Event.
If a BusinessObject
cannot be used in this context check wether the entity is set modifiyable
context
- BusinessException
Copyright © 2024. All rights reserved.