ALBPM Process API

fuego.papi.exception
Class InstancesException

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

public class InstancesException
extends BatchOperationException

Exception thrown when performing a batch operation and some of the instances (or instance items) could not complete the operation. Refer to the BatchOperationException to know how to handle the good values and the wrong ones.

See Also:
BatchOperationException, Serialized Form

Constructor Summary
InstancesException(InstanceInfo[] instances, Map<String,Throwable> otherExceptions, boolean failAll)
           
InstancesException(InstanceInfo[] instances, Map<String,Throwable> otherExceptions, List targetActs, ParticipantsForActivities participantsForActivities, boolean failAll)
           
 
Method Summary
 boolean failAllInstances()
           
 InstanceInfo[] getAvailableInstances()
          This method returns an array of instances.
 String getErrorsMessage()
          This method returns a string message with all the errors.
 ParticipantsForActivities getParticipantsForActivities()
          This method returns hash
 List getTargetActivities()
          This method returns a list of target activities names (ie: elements are Strings)
 boolean hasErrors()
          Returns true if there are others Exceptions available.
 boolean hasParticipantsForActivities()
          Returns true if there are participants for activities available.
 boolean hasTargetActivities()
          Returns true if there are targetActivities available.
 
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

InstancesException

public InstancesException(InstanceInfo[] instances,
                          Map<String,Throwable> otherExceptions,
                          boolean failAll)

InstancesException

public InstancesException(InstanceInfo[] instances,
                          Map<String,Throwable> otherExceptions,
                          List targetActs,
                          ParticipantsForActivities participantsForActivities,
                          boolean failAll)
Method Detail

getAvailableInstances

public InstanceInfo[] getAvailableInstances()
This method returns an array of instances.


getErrorsMessage

public final String getErrorsMessage()
This method returns a string message with all the errors.

Returns:
a message with all the errors

getParticipantsForActivities

public ParticipantsForActivities getParticipantsForActivities()
This method returns hash


getTargetActivities

public List getTargetActivities()
This method returns a list of target activities names (ie: elements are Strings)


failAllInstances

public boolean failAllInstances()

hasErrors

public boolean hasErrors()
Returns true if there are others Exceptions available. This means that over some instances could not be performed the desired operation and the exceptions thrown are differents than the NotUniqueTransitionException, otherwise it must be in the TargetActivities collection.


hasParticipantsForActivities

public boolean hasParticipantsForActivities()
Returns true if there are participants for activities available.


hasTargetActivities

public boolean hasTargetActivities()
Returns true if there are targetActivities available. This means that some instances could not be routed because of a NotUniqueTransitionException


ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved