mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user