Package org.alfresco.repo.rule
Interface RuntimeRuleService
- All Known Implementing Classes:
RuleServiceImpl
public interface RuntimeRuleService
Runtime rule service
- Author:
- Roy Wetherall
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRulePendingExecution(NodeRef actionableNodeRef, NodeRef actionedUponNodeRef, Rule rule) Add a rule to the pending execution listvoidaddRulePendingExecution(NodeRef actionableNodeRef, NodeRef actionedUponNodeRef, Rule rule, boolean executeAtEnd) Add a rule to the pending execution listvoidExecute all pending rulesvoidexecuteRule(Rule rule, NodeRef actionedUponNodeRef, Set<RuleServiceImpl.ExecutedRuleData> executedRules) Execute a rulegetSavedRuleFolderAssoc(NodeRef nodeRef) Get the folder that the rules are saved within for a given actionable nodevoidregisterRuleType(RuleType ruleType) Register a rule typevoidremoveRulePendingExecution(NodeRef actionedUponNodeRef) Remove all pending rules that are actioning upon the given node reference
-
Method Details
-
executeRule
void executeRule(Rule rule, NodeRef actionedUponNodeRef, Set<RuleServiceImpl.ExecutedRuleData> executedRules) Execute a rule- Parameters:
rule- ruleactionedUponNodeRef- actioned upon node referenceexecutedRules- already executed rules
-
addRulePendingExecution
Add a rule to the pending execution list- Parameters:
actionableNodeRef- actionable node referenceactionedUponNodeRef- actioned upon node referencerule- rule
-
addRulePendingExecution
void addRulePendingExecution(NodeRef actionableNodeRef, NodeRef actionedUponNodeRef, Rule rule, boolean executeAtEnd) Add a rule to the pending execution list- Parameters:
actionableNodeRef- actionable node referenceactionedUponNodeRef- actioned upon node referencerule- ruleexecuteAtEnd- true if execute rule at the end of the transaction, false otherwise
-
removeRulePendingExecution
Remove all pending rules that are actioning upon the given node reference- Parameters:
actionedUponNodeRef- actioned upon node reference
-
executePendingRules
void executePendingRules()Execute all pending rules -
registerRuleType
Register a rule type- Parameters:
ruleType- rule type
-
getSavedRuleFolderAssoc
Get the folder that the rules are saved within for a given actionable node- Parameters:
nodeRef- node reference- Returns:
- ChildAssocationref child association reference to the rule folder
-