mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Changed the test a bit and uncommented intial fix, as we agree it's an workaround for the moment.
This commit is contained in:
@@ -891,11 +891,11 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
||||
currentDispositionActionDefinition = di.getDispositionActionDefinition(currentADId);
|
||||
// When the record has multiple disposition schedules the current disposition action may not be found by id
|
||||
// In this case it will be searched by name
|
||||
// if(currentDispositionActionDefinition == null)
|
||||
// {
|
||||
// String currentADName = (String) nodeService.getProperty(currentDispositionAction, PROP_DISPOSITION_ACTION);
|
||||
// currentDispositionActionDefinition = di.getDispositionActionDefinitionByName(currentADName);
|
||||
// }
|
||||
if(currentDispositionActionDefinition == null)
|
||||
{
|
||||
String currentADName = (String) nodeService.getProperty(currentDispositionAction, PROP_DISPOSITION_ACTION);
|
||||
currentDispositionActionDefinition = di.getDispositionActionDefinitionByName(currentADName);
|
||||
}
|
||||
|
||||
// Get the next disposition action
|
||||
int index = currentDispositionActionDefinition.getIndex();
|
||||
|
@@ -92,24 +92,24 @@ public class UpdateNextDispositionActionTest extends BaseRMTestCase
|
||||
|
||||
// create record inside folder1
|
||||
record = utils.createRecord(folder1, generate(), generate());
|
||||
|
||||
|
||||
}
|
||||
@Override
|
||||
public void when() throws Exception
|
||||
{
|
||||
// link the record to folder2
|
||||
recordService.link(record, folder2);
|
||||
|
||||
// complete record
|
||||
utils.completeRecord(record);
|
||||
|
||||
|
||||
// set the disposition as of date to now on the record
|
||||
rmActionService.executeRecordsManagementAction(record,
|
||||
EditDispositionActionAsOfDateAction.NAME,
|
||||
Collections.singletonMap(EditDispositionActionAsOfDateAction.PARAM_AS_OF_DATE, new Date()));
|
||||
}
|
||||
EditDispositionActionAsOfDateAction.NAME,
|
||||
Collections.singletonMap(EditDispositionActionAsOfDateAction.PARAM_AS_OF_DATE, new Date()));
|
||||
|
||||
@Override
|
||||
public void when()
|
||||
{
|
||||
// cut off
|
||||
rmActionService.executeRecordsManagementAction(record, CutOffAction.NAME, null);
|
||||
rmActionService.executeRecordsManagementAction(record, CutOffAction.NAME, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user