@RuleType(name="nuclos.ruletype.custumrule.name", description="nuclos.ruletype.custumrule.description") public interface CustomRule
CustomRule
is the interface that should be used to make an rule
applicable for Custom-Events.
Classes implementing this interface can be attached to Entities. In case of executing a rule manually the method custom is called.
Modifier and Type | Method and Description |
---|---|
void |
custom(CustomContext context)
CustomContext is the context providing all custom - relevant attributes and methods. |
void custom(CustomContext context) throws BusinessException
CustomContext
is the context providing all custom - relevant attributes and methods.
To get the BusinessObject
/ Entities that are modifiable can be used in Custom-Rule.
If a BusinessObject
cannot be used in this context check wether the entity is set modifiable
context
- CustomContext
contextBusinessException
Copyright © 2024. All rights reserved.