cancel
Showing results for 
Search instead for 
Did you mean: 

Related content not showing in archived tasks

hhuether
Champ in-the-making
Champ in-the-making
Hi Activiti-Team,

I recently started my first serious Activiti Project, and I am progressing nicely, so first of all: Thanks for providing this great framework and for your support.

Using a modified version of the Activiti Explorer as UI, I realized that related content does not show up when viewing tasks in the "Archived" section. Until now, I just had a quick look at the code, but it seems that is at least supposed to be accessible there, right?

For testing purposes, I also deployed the original version 5.12.1 of Explorer on my local Tomcat and ran into the same issue.

Can you confirm this behaviour? It's certainly possible that I'm doing something wrong here, of course 😉

Thanks for your help!

Best regards

Hanno
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
That is indeed a bug. I just fixed it on the master branch: https://github.com/Activiti/Activiti/commit/0acfce6e1f0bfd392731e562e908822d32652d67

hhuether
Champ in-the-making
Champ in-the-making
Great! Thanks!

prashantm
Champ in-the-making
Champ in-the-making
I am a newbie to Activiti. But I think besides the change in function populateRelatedContent to make table visible, a change in function initRelatedContent is required to populate attachments at line # 311.

    List<Attachment> attachments = null;
    if (historicTask.getProcessInstanceId() != null){
      attachments = (taskService.getProcessInstanceAttachments(historicTask.getProcessInstanceId()));
    } else {
      attachments = taskService.getTaskAttachments(historicTaskgetId());
    }
   

jbarrez
Star Contributor
Star Contributor
You are correct. I updated the code: https://github.com/Activiti/Activiti/commit/33169dac0fa9494f6b450ad053259efd3eca962e

Thanks for spotting this!