02-07-2023 10:17 AM
Team,
How do I fetch all the docs and attachments related to a completed workflow of a given model?
If that is achievable without any customization, please provide guidance/snippet on that.
its APS 1.10.
02-09-2023 10:43 PM
What you mean by given model?
Is this for Alfresco content service or alfresco process service?
02-09-2023 11:16 PM
Here is clarification.
App Designer uses visual steps to create our bpmn model,
When we create app Using App Designer, it includes User Task and many such steps. If we can get attachment via javascript snippet to get.
and I need solution for APS not ACS.
02-13-2023 04:42 AM
You can use the RelatedContentService using the Java API.
You could create a ServiceTask using the following method:
relatedContentService.getFileContentForProcessInstance(task.getProcessInstanceId(), field, pageSize, page);
field is the process variable id that you have in your form for managing that specific attachment.
For example you could have something like the following:
relatedContentService.getFileContentForProcessInstance(task.getProcessInstanceId(), "contractAttachments", 10, 0);
Hope this helps
Explore our Alfresco products with the links below. Use labels to filter content by product module.