mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
17307: Merged DEV/BELARUS/V3.2-2009_10_19 to V3.2 17121: ETHREEOH-2999: Accessing Recent snapshots fails in a web project that is created from an already existing project 17223: ETHREEEOH-2999: (post-review changes) 17346: ETHREEOH-2824 - further perf improvement for multiple single submits (to active workflow sandboxes) from large modified list 17375: Fix ETHREEOH-1643 - WCM revert file & version history, including a few unreported WCM / UI revert file issues 17380: ETHREEOH-1643 - fix build/test fallout git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,6 +41,7 @@ import org.alfresco.service.cmr.workflow.WorkflowTask;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.wcm.asset.AssetInfo;
|
||||
import org.alfresco.wcm.asset.AssetInfoImpl;
|
||||
import org.alfresco.wcm.util.WCMUtil;
|
||||
import org.alfresco.web.bean.BrowseBean;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.bean.repository.NodePropertyResolver;
|
||||
@@ -255,8 +256,8 @@ public class AVMNode extends Node implements Map<String, Object>
|
||||
}
|
||||
return !this.layeringDesc.isBackground();
|
||||
}
|
||||
|
||||
public final boolean isWorkflowInFlight(List<WorkflowTask> tasks)
|
||||
|
||||
public final boolean isInActiveWorkflow(String sandbox)
|
||||
{
|
||||
if (this.workflowInFlight == null)
|
||||
{
|
||||
@@ -266,7 +267,7 @@ public class AVMNode extends Node implements Map<String, Object>
|
||||
}
|
||||
else
|
||||
{
|
||||
this.workflowInFlight = AVMWorkflowUtil.getAssociatedTasksForNode(this.avmRef, tasks).size() != 0;
|
||||
this.workflowInFlight = AVMWorkflowUtil.isInActiveWorkflow(sandbox, this.getDescriptor());
|
||||
}
|
||||
}
|
||||
return this.workflowInFlight;
|
||||
|
Reference in New Issue
Block a user