Interface RuleCompileActionContribution
- All Known Implementing Classes:
PromotionRuleCompileActionContribution, RequirementRuleCompileActionContribution
public interface RuleCompileActionContribution
used to configure RuleCompileActionResource and check drools rules can be compiled
-
Method Summary
Modifier and TypeMethodDescription@Nullable RuleSourcebuildRuleSource(Entity entity) build a RuleSource from a selected entity
-
Method Details
-
getEntityModel
String getEntityModel()- Returns:
- the entity model to apply contribution to
-
getSubject
String getSubject()- Returns:
- the id of the drools subject to use for compilation
-
getTextResourceId
String getTextResourceId()- Returns:
- a string used to build the text resource key of result messages
-
buildRuleSource
build a RuleSource from a selected entity- Parameters:
entity- the entity to build the RuleSource for- Returns:
- the finished RuleSource
-