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 TypeMethodDescriptionvoidcustom(CustomContext context) CustomContextis the context providing all custom - relevant attributes and methods.
-
Method Details
-
custom
CustomContextis 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
BusinessObjectcannot be used in this context check wether the entity is set modifiable- Parameters:
context-CustomContextcontext- Throws:
BusinessException
-