mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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()));
|
||||
|
Reference in New Issue
Block a user