ALBPM Process API

fuego.papi.exception
Class AttachmentsNotAvailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fuego.lang.DefaultException
              extended by fuego.papi.BatchOperationException
                  extended by fuego.papi.exception.AttachmentsNotAvailableException
All Implemented Interfaces:
Serializable

public class AttachmentsNotAvailableException
extends BatchOperationException

Class AttachmentsNotAvailableException This exception is thrown when not all the attachments requested are available, this could happen when not all the processes are available (may be some engine could be down, and can't provide the data). The available Attachments can be obtained through the method getAvailableAttachments(). In addition, a map with the wrong processIds and the corresponding exceptions is returned by the method getNotAvailableProcesses(). Where the key is the processId, and the value is the exception thrown with the message explaining why that process is not available.

See Also:
Serialized Form

Constructor Summary
AttachmentsNotAvailableException(Attachment[] availableAttachments, Map<String,Throwable> notAvailableProcesses)
          Constructs an AttachmentsNotAvailableException.
AttachmentsNotAvailableException(List<Attachment> availableAttachments, Map<String,Throwable> notAvailableProcesses)
           
 
Method Summary
 boolean failAllProcesses()
           
 Attachment[] getAvailableAttachments()
          This method returns an array with the returned value for those available attachments.
 
Methods inherited from class fuego.papi.BatchOperationException
failAll, getAvailableObjects, getMessage, getNotAvailableObjects
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, getStackTrace, getStackTraceString, getTechnicalDetail, getUserMessage, hasDetail
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentsNotAvailableException

public AttachmentsNotAvailableException(Attachment[] availableAttachments,
                                        Map<String,Throwable> notAvailableProcesses)
Constructs an AttachmentsNotAvailableException.

Parameters:
availableAttachments - Is an array of Attachments containig all that objects which might be returned by the specific method who is throwing this exception.
notAvailableProcesses - A map containing the processIds and the exceptions of all the processes that are not available. IMPORTANT: Ensure that all the exceptions stored in the Map can be seen by the PAPI user.

AttachmentsNotAvailableException

public AttachmentsNotAvailableException(List<Attachment> availableAttachments,
                                        Map<String,Throwable> notAvailableProcesses)
Method Detail

getAvailableAttachments

public Attachment[] getAvailableAttachments()
This method returns an array with the returned value for those available attachments.


failAllProcesses

public boolean failAllProcesses()

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved