Commit Graph

408 Commits

Author SHA1 Message Date
Mark Rogers
2ddfa7c2a4 ALF-4860 - Content stream not being closed when retrieving log file from transfer target
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-24 09:29:00 +00:00
Derek Hulley
b8af08649d ALF-4106: AuditService and audit DAO refactor
- Moved 'AlfrescoRepository' to be an extension sample audit application
 - Added 'AlfrescoRepositoryTest' into test-resources for unit tests
 - Updated unit tests and added stricter checking for enable/disable status


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 15:06:06 +00:00
Gavin Cornwell
94a04311d7 Fixed ALF-4782: Workflows I've Started list shows completed as well as running workflows
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22549 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-15 12:18:46 +00:00
Dave Ward
945d511298 Merged V3.3-BUG-FIX to HEAD
22497: Merged V3.3 to V3.3-BUG-FIX
      22495: Merged V3.2 to V3.3
         22465: (RECORD ONLY) Fix for ALF-4741. Repository Web Scripts can produce a corrupted response after a transaction collision/retry.
            The fix was to have the BufferedResponse.afterRollback() method reset the buffer rather than write the response.
         22468: (RECORD ONLY) Incremented version label
         22494: ALF-4741: Rework of previous fix to ensure a buffered web script response is always flushed after the last transaction retry - even on a rollback


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22498 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-14 12:47:50 +00:00
Neil McErlean
a2bf24490a Fix for ALF-4741. Repository Web Scripts can produce a corrupted response after a transaction collision/retry.
Fix was to reset the BufferedResponse afterRollback rather than write the response.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22470 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 16:09:49 +00:00
Gavin Cornwell
585a3ffe8c Fixed ALF-4701: Running workflows can disappear from the Workflows I've Started list when using the Workflow Type filter.
Added "definitionName" as a parameter to the GET /api/workflow-instances REST API, UI now uses this parameter to filter workflow types.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22445 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-13 10:54:43 +00:00
Brian Remmington
6a868744f5 Transfer Service:
- Rehydration of exception received from target repo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 16:57:06 +00:00
Derek Hulley
e102e9ce4a Fixed ALF-4682: ActionTrackingService uses cluster-unsafe cache
- Added *full* replication of objects across the cluster for 'executingActionsCache'
 - Changed cache variables to use SimpleCache


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22387 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 11:58:15 +00:00
Nick Burch
f4789e91bf ALF-4704 - Filter out deleted nodes in the replication model builder, otherwise the freemarker for the replication webscripts chokes on deleted ones. Includes new unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22376 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 10:08:14 +00:00
Gavin Cornwell
642e12d0bd Merged BRANCHES/DEV/BELARUS/HEAD_2010_09_07 to HEAD:
22354: ALF-4637 : The sort order of the My Tasks dashlet and lists are confusing
               ALF-4640: The code to implement paging in workflow REST API needs re-factoring

Also added default due date ordering to the workflow instances REST API.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22375 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 08:37:26 +00:00
Brian Remmington
c1074cf17c Transfer Service:
- Exception from server is now reported back over the wire via the "get status" request
- Added another test case to TransferServiceCallbackTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 21:15:07 +00:00
Gavin Cornwell
b971b71658 Fix for ALF-4647 (All sample workflows should be enabled OOTB) & ALF-4638 (The transition buttons on the edit task page sometimes change order) and a couple of other unreported issues found along the way.
The pooled and parallel workflow definitions are now enabled by default, all corresponding form configuration for the start tasks and other task types are also defined, some tweaking may be need after review from Linton. 

Fixed a potential NPE when transition id's are returned as null. Log warnings added to the task type config evaluator when the type can not be retrieved, which gives an indication as to why forms display all the default fields rather than the configured ones.

Changed process definitions to use a consistent ordering for the Approve and Reject transitions.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22336 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 13:32:05 +00:00
Nick Burch
a88a8ef6b2 Re-enable webscript test for ALF-4610 now that the spring surf fix is in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22306 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-07 15:57:38 +00:00
Nick Burch
e83f5f2bd0 Add commented out unit test for ALF-4610, to show that we can cope with replication definitions with funny characters in the name
Unit test is disabled for now, as it triggers a springsurf webscript bug...


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-07 11:53:21 +00:00
Gavin Cornwell
07b8124b1b Added "version" property to GET workflow-definitions REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22236 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-03 13:47:20 +00:00
Gavin Cornwell
c73b88bfae First set of workflow UI changes following Linton's review.
- (No Message) now shown when the user did not enter a message when workflow was started (only for workflows at the moment, tasks TBD)
- Removed timestamps from due dates in workflow details

Also renamed task.lib.ftl to workflow.lib.ftl and combined with workflow-definition.lib.ftl

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22224 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-03 11:35:25 +00:00
Gavin Cornwell
5f2858c986 Performance improvement for GET workflow-instances REST API.
Added "priority" and "dueDate" to WorkflowInstance object, which means a query for the workflow start task is no longer required to retrieve this information. A query was previously being done for every row in the results.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 21:17:57 +00:00
Derek Hulley
edc658958d ALF-4106 AuditService enhancements and fixes
- Enabling DEBUG logging for 'org.alfresco.repo.audit.inbound' will dump all auditable data
 - Fixed values output so that Serializable map entries are converted to Strings
 - Made plain the pre-audit client check (i.e. it doesn't need a path for checking)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22203 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 20:15:36 +00:00
Derek Hulley
4d7b9c65cd ALF-4106 AuditService REST API: Added 'dataTrigger' to 'RecordValue'
- Prevents RecordValue elements from activating unnecessarily
 - Without any entries, everything behaves as before i.e. 'RecordValue' triggers on data entries at the current path


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 18:11:43 +00:00
Derek Hulley
10d3c01b3e ALF-4106 (ALF-4103): AuditService REST API; Query
- Added path- and value-based queries
 - Added limits
 - .desc.xml documentation
 - Further unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 15:13:42 +00:00
Derek Hulley
a12de8fa73 ALF-4106 (ALF-4103): AuditService REST API; Query
-  /api/audit/query/{application}
    fromId={fromId}
    toId={toId}
    fromTime={fromTime}
    toTime={toTime}
    user={user}
    forward={forward}
    limit={limit}
    verbose={verbose}


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 18:33:09 +00:00
Gavin Cornwell
c3df9d4598 ALF-3967: F54 A section of the document details page shows details of the workflows that the document is involved in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22144 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 17:39:07 +00:00
Gavin Cornwell
703733d68f Added "message", "priority", "dueDate", "context" and "package" properties to the SimpleWorkflowInstanceResponse.
Unfortunately, priority and dueDate can not be retrieved from the WorkflowInstance in the Java API so they are hardcoded until that issue can be resolved.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 12:45:53 +00:00
Gavin Cornwell
915f85a6ab ALF-3896: F69 REST API to get the history (completed tasks) of a workflow instance (GET /api/workflow-instances/{workflow_instance_id}/task-instances)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 05:52:38 +00:00
Derek Hulley
092dbd87a2 ALF-4106: WS call to clear audit entries
-  /api/audit/clear/{application}?fromTime={fromTime}&toTime={toTime}


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 20:07:13 +00:00
Nick Burch
cfbfdb92ac When an action is marked as pending, it shouldn't have a started execution at time yet (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 13:43:55 +00:00
Nick Burch
9b867fc350 When a replication task is executing, the rest API details shouldn't include information on the previous run, such as logs and messages (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 12:01:26 +00:00
Gavin Cornwell
6dd6f37edc ALF-4485: F107 All relevant REST APIs have the ability to exclude task and workflow types
GET workflow-definitions, GET task-instances and GET workflow-instances all now support the new 'exclude' parameter. This is a comma separated list of types to exclude from the results, for example: "wf:adhocTask,wcmwf:*"

Also fixed the filtering logic used in GET task-instances and GET workflow-instances so that multiple filter parameters now work correctly together.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 14:02:06 +00:00
Nick Burch
aecf8c464b ALF-4505 - Change how replication definition "sort by last run" orders jobs that haven't ever been run
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 13:17:31 +00:00
Nick Burch
eb4b8fd94e ALF-4348 - More replication job scheduling work
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:56:44 +00:00
Nick Burch
ce1f57c3b9 ALF-4346 & ALF-4348 - More work on schedulable actions, and start to expose this through to the replication service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:36:37 +00:00
Nick Burch
8ae41a2a94 Mark out which bits need to be changed to support ALF-4476
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:36:31 +00:00
Nick Burch
926effbcae ALF-4408 - prevent creation of duplicate named replication definitions, and update the unit tests to properly test this, not just almost test it...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21986 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 12:02:42 +00:00
Gavin Cornwell
8f0876a332 - Added 'pooledTasks' parameter to GET task-instances REST API
- Added 'definitionId' parameter to GET workflow-instances REST API
- All date parameters now support a value of "null" or an empty string to indicate that a NULL date should be searched for

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21970 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 15:50:45 +00:00
Gavin Cornwell
60da75b178 Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_23 to HEAD:
21942: ALF-4303 : F100 All REST APIs have the ability to restrict the results with a 'maxItems' parameter
               ALF-4377 : F103 All REST APIs have the ability to return paged results with a 'skipCount' parameter

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21955 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 08:07:07 +00:00
Gavin Cornwell
eae37b616f Added task update protection to the task form processor and changed the check in TaskInstancePut to use the new isTaskEditable method on the WorkflowService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 07:24:12 +00:00
Gavin Cornwell
d1924830c9 Added "type" property to the workflow instance response, mainly for future use and consistency with the task response, it currently duplicates the "name" property
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 13:49:50 +00:00
Gavin Cornwell
8cf1f25f3f Added "avatarUrl" property to the "owner" and "initiator" objects in workflow REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21900 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 13:46:42 +00:00
Gavin Cornwell
79c700b6fb Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_17 to HEAD:
21853: ALF-4304 : F101 All relevant REST APIs have filtering capabilities i.e. authority, state, priority and date range
               ALF-3902: F77 REST API to get all task instances

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 12:31:58 +00:00
Derek Hulley
55bd4fc42e Very minor formatting
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21895 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 10:41:09 +00:00
Gavin Cornwell
aa32a118ab - Added isTaskEditable, isTaskReassignable, isTaskClaimable and isTaskReleasable to WorkflowService
- Added isEditable, isReassignable, isClaimable and isReleasable flags to task model in REST API
- Added outcome property to task model in REST API (label instead of raw value)
- Change "definitionTypeTitle" property to "type" and fixed up fallout
- Changed UI to use the isXXX flags above rather than copious amount of repeated checks
- Updated workflow details page to use outcome label, isEditable flag and some changes following discussion with Linton
- Added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:07:02 +00:00
Steven Glover
f17f156887 ALF-4194 - minor fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21883 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 19:02:18 +00:00
Mark Rogers
63edaf4c88 ALF-4127 - F86 Provide target log to source repository
implemented with unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:16:54 +00:00
Derek Hulley
a1f7724db4 ALF-4106 (ALF-4103): AuditService REST API
- Full start/stop/status using WebScripts
 - AuditService API additions to support
 - .ftl to generate json response
 - Some javadoc and debug additions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-14 20:42:26 +00:00
Nick Burch
5832f32f5a Add in missing webscript tests to the suite, and sort the list of tests so it's easier to spot missing ones
(Several of these webscript tests seem to have been broken for a long time though...)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 13:20:40 +00:00
Nick Burch
3c16d97c3c In the replication webscripts, return single responses still wrapped in data:{} entries
Update unit tests following this json change, and also fix them after the json changes from r21749


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 12:45:05 +00:00
Gavin Cornwell
f44b951918 Changed status response code of DELETE workflow-instance REST API to 200 to be consistent with all other DELETE APIs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 18:11:16 +00:00
Nick Burch
984c17f7cd ALF-4296 - different replication definition delete webscript http response code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 14:26:01 +00:00
Gavin Cornwell
5f04340129 Added check to PUT task-instance REST API to ensure that the user claiming a task has the authority to do so i.e. they are a member of one of the pooled actor groups assigned to task.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21736 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 13:58:20 +00:00
Nick Burch
af204372ec ALF-4296 - tweak how Status.STATUS_GONE is returned from the replication webscripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 11:52:58 +00:00