@Override public boolean canEditDocumentOverview(Document document) { WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument(); Set<String> nodeNames = workflowDocument.getCurrentNodeNames(); return workflowDocument.isEnroute() && CollectionUtils.isNotEmpty(nodeNames) && nodeNames.contains(KFSConstants.RouteLevelNames.ACCOUNT_REVIEW_FULL_EDIT) && workflowDocument.isApprovalRequested() && !workflowDocument.isAcknowledgeRequested(); }
/** * A helper method for determining the route levels for a given document. * * @param workflowDocument * @return List */ protected Set<String> getCurrentRouteLevels(WorkflowDocument workflowDocument) { return workflowDocument.getCurrentNodeNames(); }