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
This commit is contained in:
Roy Wetherall
2006-06-13 09:08:10 +00:00
parent 469894719d
commit 1639134ef7

View File

@@ -130,18 +130,10 @@ 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);
}
}
}
else
{
if (logger.isDebugEnabled() == true)