ALBPM Process API

fuego.papi.exception
Class ProcessesNotAvailableException

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.ProcessesNotAvailableException
All Implemented Interfaces:
Serializable

public class ProcessesNotAvailableException
extends BatchOperationException

Class ProcessesNotAvailableException This exception is thrown when not all the processes requested are available. The objects returned for those available processes can be obtained through the method getAvailableProcess(). In addition, a map with the processId and the corresponding exception is returned by the method getNotAvailableProcesses(). Here 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
ProcessesNotAvailableException(List<Process> availableProcesses, Map<String,Throwable> notAvailableProcesses)
           
ProcessesNotAvailableException(Object[] availableProcesses, Map<String,Throwable> notAvailableProcesses)
          Constructs a ProcessesNotAvailableException.
 
Method Summary
 boolean failAllProcesses()
           
 Object[] getAvailableProcesses()
          This method returns an array with the returned value for those available processes.
 void setAvailableProcesses(Object[] availableProcesses)
          This method sets an array with the returned value for those available processes.
 
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

ProcessesNotAvailableException

public ProcessesNotAvailableException(Object[] availableProcesses,
                                      Map<String,Throwable> notAvailableProcesses)
Constructs a ProcessesNotAvailableException.

Parameters:
availableProcesses - Is an array of objects containig all that objects which might be returned by the specific method who is building 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.

ProcessesNotAvailableException

public ProcessesNotAvailableException(List<Process> availableProcesses,
                                      Map<String,Throwable> notAvailableProcesses)
Method Detail

setAvailableProcesses

public void setAvailableProcesses(Object[] availableProcesses)
This method sets an array with the returned value for those available processes.


getAvailableProcesses

public Object[] getAvailableProcesses()
This method returns an array with the returned value for those available processes.


failAllProcesses

public boolean failAllProcesses()

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved