Skip to content

Commit

Permalink
Merge with master
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Jun 17, 2013
2 parents 85f6ecd + f316ea2 commit 1d3572b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package org.activiti.explorer.ui.task;

import java.util.ArrayList;
import java.util.List;

import org.activiti.engine.HistoryService;
Expand Down Expand Up @@ -308,7 +309,13 @@ protected void initRelatedContent() {
addComponent(relatedContentLayout);
initRelatedContentTitle();

List<Attachment> attachments = taskService.getTaskAttachments(historicTask.getId());
List<Attachment> attachments = new ArrayList<Attachment>();
attachments.addAll(taskService.getTaskAttachments(historicTask.getId()));
if (historicTask.getProcessInstanceId() != null) {
System.out.println("BIEP : " + taskService.getProcessInstanceAttachments(historicTask.getProcessInstanceId()).size());
attachments.addAll(taskService.getProcessInstanceAttachments(historicTask.getProcessInstanceId()));
}

if (attachments.size() > 0) {
Table table = initRelatedContentTable();
populateRelatedContent(table, attachments);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void testAuthenticationThroughLdap() {
public void testCandidateGroupFetchedThroughLdap() {
runtimeService.startProcessInstanceByKey("testCandidateGroup");
assertEquals(1, taskService.createTaskQuery().count());
assertEquals(1, taskService.createTaskQuery().taskCandidateGroup("Sales").count());
assertEquals(1, taskService.createTaskQuery().taskCandidateGroup("sales").count());

// Pepe is a member of the candidate group and should be able to find the task
assertEquals(1, taskService.createTaskQuery().taskCandidateUser("pepe").count());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<userTask id="theTask">
<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>user(kermit), group(Sales)</formalExpression>
<formalExpression>user(kermit), group(sales)</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>
</userTask>
Expand Down

0 comments on commit 1d3572b

Please sign in to comment.