@RuleType(name="nuclos.ruletype.updaterule.name", description="nuclos.ruletype.updaterule.description") public interface UpdateRule
UpdateRule
is the interface that should be used to make an rule
applicable for Update-Events.
Classes implementing this interface can be attached to entities. In case of an Update-Event the method update is called.
UpdateContext
Modifier and Type | Method and Description |
---|---|
void |
update(UpdateContext context)
UpdateContext is the context providing all update - relevant attributes and methods. |
void update(UpdateContext context) throws BusinessException
UpdateContext
is the context providing all update - 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 Update-Event.
If a BusinessObject
cannot be used in this context check wether the entity is set modifiyable
context
- BusinessException
Copyright © 2024. All rights reserved.