05-22-2015 05:10 AM
List<WorkflowInstance> instances = this.workflowService.getCompletedWorkflows();
for (WorkflowInstance instance : instances) {
WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setActive(false);
query.setTaskState(null);
query.setProcessId(instance.getId());
List<WorkflowTask> tasks = workflowService.queryAllTasks(query);
WorkflowTask endTask = getEndTask(tasks); // I needed to my own parsing here because when I tried to do the query with custom properties I always got empty list
if (endTask != null) {
List<NodeRef> items = this.workflowService.getPackageContents(endTask.getId()); // HERE THE ERROR OCCURS!!!
…
}
}
05-22-2015 05:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.