public interface RuntimeRuleService
Modifier and Type | Method and Description |
---|---|
void |
addRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionableNodeRef,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
Rule rule)
Add a rule to the pending execution list
|
void |
addRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionableNodeRef,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
Rule rule,
boolean executeAtEnd)
Add a rule to the pending execution list
|
void |
executePendingRules()
Execute all pending rules
|
void |
executeRule(Rule rule,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
Set<RuleServiceImpl.ExecutedRuleData> executedRules)
Execute a rule
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
getSavedRuleFolderAssoc(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the folder that the rules are saved within for a given actionable node
|
void |
registerRuleType(RuleType ruleType)
Register a rule type
|
void |
removeRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Remove all pending rules that are actioning upon the given node reference
|
void executeRule(Rule rule, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, Set<RuleServiceImpl.ExecutedRuleData> executedRules)
rule
- ruleactionedUponNodeRef
- actioned upon node referenceexecutedRules
- already executed rulesvoid addRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionableNodeRef, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, Rule rule)
actionableNodeRef
- actionable node referenceactionedUponNodeRef
- actioned upon node referencerule
- rulevoid addRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionableNodeRef, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, Rule rule, boolean executeAtEnd)
actionableNodeRef
- actionable node referenceactionedUponNodeRef
- actioned upon node referencerule
- ruleexecuteAtEnd
- true if execute rule at the end of the transaction, false otherwisevoid removeRulePendingExecution(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
actionedUponNodeRef
- actioned upon node referencevoid executePendingRules()
void registerRuleType(RuleType ruleType)
ruleType
- rule typeorg.alfresco.service.cmr.repository.ChildAssociationRef getSavedRuleFolderAssoc(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- node referenceCopyright © 2005–2017 Alfresco Software. All rights reserved.