mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
When the last step of the current disposition is completed, no more calculation is needed.
This commit is contained in:
@@ -278,6 +278,13 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
NodeRef dsNodeRef = null;
|
NodeRef dsNodeRef = null;
|
||||||
if (isRecord(nodeRef))
|
if (isRecord(nodeRef))
|
||||||
{
|
{
|
||||||
|
DispositionSchedule originDispositionSchedule = getOriginDispositionSchedule(nodeRef);
|
||||||
|
// if the initial disposition schedule of the record is folder based
|
||||||
|
if (isNotTrue(originDispositionSchedule.isRecordLevelDisposition()))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
final NextActionFromDisposition dsNextAction = getDispositionActionByNameForRecord(nodeRef);
|
final NextActionFromDisposition dsNextAction = getDispositionActionByNameForRecord(nodeRef);
|
||||||
|
|
||||||
if (dsNextAction != null)
|
if (dsNextAction != null)
|
||||||
@@ -1143,6 +1150,13 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
|
|
||||||
if (nextDispositionAction == null)
|
if (nextDispositionAction == null)
|
||||||
{
|
{
|
||||||
|
DispositionAction lastCompletedDispositionAction = getLastCompletedDispostionAction(record);
|
||||||
|
if (lastCompletedDispositionAction != null)
|
||||||
|
{
|
||||||
|
// all disposition actions upon the given record were completed
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return getFirstDispositionAction(record, recordFolders);
|
return getFirstDispositionAction(record, recordFolders);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user