As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Given a Process Instance ID OR ContentId, I need to be able to display to the user in a downloadable format all files attached during that workflow. These files are being stored as BLOBs in an Oracle database table. Is there a way I can display these files to the user following a query of that process instance ID? The "link" column of this table is empty.
Could you please confirm if you are using the Enterprise version of the Activiti or the community version?
Enterprise
Check if these APIs are of any help? Content | Alfresco Documentation
Using this API I'm able to GET the details about the documents (ID, name, etc). However, if I try to map the ID to a variable and then use Display Value id_variable in a form, it shows up empty. How do I then display the file?
Looks like you are complicating this. You don't have to do any of that if all you trying to do is display a previously selected attachment. Please find attached a modified version where you can use display value field to select an attachment.
I'm trying to display a document attached in a previous process instance, not the current one
It is best to be done using the Java APIs associated with related contents. You can refer to an example at activiti-examples/activiti-copy-attachments-from-parent-process at master · cijujoseph/activiti-examples · GitHub.
If it is one or two files, using the url field field is an option too. Please find attached an example showing how to do it. to run this example, you need to know the content id which you can obtain using rest apis.
Hope this helps. Also, when asking questions, it would be great if you can provide as much details as you can at the beginning including some attachments like unit tests, prototypes etc which will help save time!
Ciju, this still does not resolve my issue. The processes would not be related in any way; there is no parent-child relationship. I basically need to create a search engine where a user can find/download ANY content that has been uploaded in an entirely different process.
Hi Ciju,
does the community version stores the attached file in ACT_HI_ ATTACHMENT db ?
Regards,
sekhar