Displays documents attached to a specified process instance.


Basic Usage


Make sure to override the UploadService with the ProcessUploadService

import { UploadService } from '@alfresco/adf-core';
import { ProcessUploadService } from '@alfresco/adf-process-services';

    selector: 'my-custom-process-attachment',
    providers: [
        { provide: UploadService, useClass: ProcessUploadService }
class MyCustomProcessAttachmentComponent {
    constructor() {}


Any content inside the <adf-process-attachment-list> element will be shown when the list is empty:

<adf-process-attachment-list ...>
    <div><!-- Custom empty list message goes here --></div>


A default template will be used if you don't supply a custom one to override it:


Class members


NameTypeDefault valueDescription
disabledbooleanfalseDisable/Enable read-only mode for attachment list.
processInstanceIdstring(required) The ID of the process instance to display.


attachmentClickEventEmitter<any>Emitted when the attachment is double-clicked or the view option is selected from the context menu by the user from within the component. Returns a Blob representing the object that was clicked.
errorEventEmitter<any>Emitted when the attachment list is not able to fetch the attachments (eg, following a network error).
successEventEmitter<any>Emitted when the attachment list has fetched all the attachments. Returns a list of attachments.


How to Add Drag and Drop Functionality

You can wrap the attachment list with an Upload Drag Area component to let the user upload attachments to empty lists. When you do this, you can also supply a custom no content template (using <adf-empty-list>) to invite the user to add their attachments:

            <div adf-empty-list> //no content template
                    <div adf-empty-list-header>{{This List is empty}}</div>
                    <div adf-empty-list-body>{{Drag and drop to upload}}</div>
                    <div adf-empty-list-footer>
                        <img [src]="Your custom image URL"></div> 

© 2023 Alfresco Software, Inc. All Rights Reserved.