Changed the test a bit and uncommented intial fix, as we agree it's an workaround for the moment.

This commit is contained in:
Roxana Lucanu-Ghetu
2016-06-16 15:50:35 +03:00
parent 563cae7555
commit 85b965dea9
2 changed files with 14 additions and 14 deletions

View File

@@ -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();

View File

@@ -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