Interface IResolvedAttachmentList

    • Method Detail

      • collectResult

        <R,​E extends Throwable> R collectResult​(IResolvedAttachmentListProcessor<R,​E> handler)
                                               throws E extends Throwable
        Iterates over all resolved attachment items, processes them with the given handler, and returns the combined result of all attachment items. Standard use case is to convert errors to hard and soft workflow node errors and return a list of all resolved attachments.

        If you wish to use the standard error behavior for attachments, use standardAttachmentErrorsSingle or standardAttachmentErrorsMultiple. Otherwise, provide your own processor implementation, or extend the StandardErrorAttachmentListProcessor.

        Type Parameters:
        R - Type of the combined result of all attachment items.
        E - Type of the error that may be thrown when any errors are present.
        Parameters:
        handler - Handler for processing the errors and the results.
        Returns:
        The combined result of all attachment items.
        Throws:
        E - The first error thrown by the handler.
        E extends Throwable
      • getAttachmentList

        IReferencedAttachmentList getAttachmentList()
        Returns:
        The attachment list that was resolved to obtain this result.
      • getResolvedAttachmentsPartial

        @Nonnull
        default List<IResolvedAttachment> getResolvedAttachmentsPartial()
        Returns:
        All attachments that were found, regardless of whether errors occurred or not. When errors is not empty, this list may be incomplete.