Package org.nuclos.api.rule
Interface CustomRule
@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.
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionvoid
custom
(CustomContext context) CustomContext
is the context providing all custom - relevant attributes and methods.
-
Method Details
-
custom
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- Parameters:
context
-CustomContext
context- Throws:
BusinessException
-