mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed one of the failing tests for rules coverage:
- The test model didn't allow multiple values for the category property. - The setting of the category in the action puts a single value if one doesn't exist, or changes the value to a collection if a category already exists. This is true even if the category is exactly the same. I have **NOT** managed to fix the 'testInboundRuleType' because it would appear that the test action evaluation is being done with a NoConditionEvaluator. The test checks to see that the action is not executed for an empty content node. It might be a side-effect of the parent node update policy ... but I can't see why. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ package org.alfresco.repo.action;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
|
||||
import org.alfresco.error.StackTraceUtil;
|
||||
import org.alfresco.repo.rule.RuleServiceImpl;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
||||
@@ -116,6 +117,22 @@ public class AsynchronousActionExecutionQueueImpl implements AsynchronousActionE
|
||||
actionChain,
|
||||
executedRules);
|
||||
threadPoolExecutor.execute(runnable);
|
||||
// Done
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
// get the stack trace
|
||||
Exception e = new Exception();
|
||||
e.fillInStackTrace();
|
||||
StackTraceElement[] trace = e.getStackTrace();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("\n")
|
||||
.append("Placed action on execution queue: \n")
|
||||
.append(" Action: " + action);
|
||||
String msg = sb.toString();
|
||||
sb = new StringBuilder();
|
||||
StackTraceUtil.buildStackTrace(msg, trace, sb, -1);
|
||||
logger.debug(sb);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user