From 1639134ef76c7c4ecd8333df6d6cf8122bdf22ff Mon Sep 17 00:00:00 2001 From: Roy Wetherall Date: Tue, 13 Jun 2006 09:08:10 +0000 Subject: [PATCH] Async rules are now queued untill the end of the transaction git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3086 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/rule/RuleTypeImpl.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/source/java/org/alfresco/repo/rule/RuleTypeImpl.java b/source/java/org/alfresco/repo/rule/RuleTypeImpl.java index 8045eea043..9980872562 100644 --- a/source/java/org/alfresco/repo/rule/RuleTypeImpl.java +++ b/source/java/org/alfresco/repo/rule/RuleTypeImpl.java @@ -130,16 +130,8 @@ public class RuleTypeImpl extends CommonResourceAbstractBase implements RuleType logger.debug("Triggering rule " + rule.getId()); } - if (rule.getExecuteAsychronously() == true) - { - // Execute the rule now since it will be be queued for async execution later - this.actionService.executeAction(rule, actionedUponNodeRef); - } - else - { - // Queue the rule to be executed at the end of the transaction (but still in the transaction) - ((RuntimeRuleService)this.ruleService).addRulePendingExecution(nodeRef, actionedUponNodeRef, rule); - } + // Queue the rule to be executed at the end of the transaction (but still in the transaction) + ((RuntimeRuleService)this.ruleService).addRulePendingExecution(nodeRef, actionedUponNodeRef, rule); } } else