ALF-4133 - Partial support for executing actions via the webscript

Will need a refactor of pending actions support before this can be finished, and unit tests can be enabled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21683 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-08-09 14:26:33 +00:00
parent 5e3357245b
commit 7ed6d33810
11 changed files with 422 additions and 2 deletions

View File

@@ -259,12 +259,17 @@ public class ReplicationModelBuilder
}
// Use the details of the running copy
// TODO Update this following pending actions changes
if(details.isCancelRequested()) {
model.put(DEFINITION_STATUS, "CancelRequested");
} else {
model.put(DEFINITION_STATUS, "Running");
}
model.put(DEFINITION_STARTED_AT, ISO8601DateFormat.format(details.getStartedAt()));
if(details.getStartedAt() != null) {
model.put(DEFINITION_STARTED_AT, ISO8601DateFormat.format(details.getStartedAt()));
} else {
model.put(DEFINITION_STARTED_AT, null);
}
model.put(DEFINITION_ENDED_AT, null);
model.put(DEFINITION_RUNNING_ACTION_ID,
AbstractActionWebscript.getRunningId(details.getExecutionSummary()));