mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1867 (Reject rule works incorrect if set up in File Plan)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95746 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -77,8 +77,11 @@ public final class FilePlanNamePathDataExtractor extends AbstractDataExtractor
|
|||||||
*/
|
*/
|
||||||
public Serializable extractData(Serializable value)
|
public Serializable extractData(Serializable value)
|
||||||
{
|
{
|
||||||
NodeRef nodeRef = (NodeRef) value;
|
String extractedData = null;
|
||||||
|
|
||||||
|
NodeRef nodeRef = (NodeRef) value;
|
||||||
|
if (nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT))
|
||||||
|
{
|
||||||
// Get path from the RM root
|
// Get path from the RM root
|
||||||
List<NodeRef> nodeRefPath = filePlanService.getNodeRefPath(nodeRef);
|
List<NodeRef> nodeRefPath = filePlanService.getNodeRefPath(nodeRef);
|
||||||
|
|
||||||
@@ -90,6 +93,9 @@ public final class FilePlanNamePathDataExtractor extends AbstractDataExtractor
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Done
|
// Done
|
||||||
return sb.toString();
|
extractedData = sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return extractedData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user