BPM 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()
          Returns if all operations fail or not.
 InstanceInfo[] getAvailableInstances()
          This method returns an array of instances.
 String getErrorsMessage()
          This method returns a string message with all the errors.
 String getErrorsMessage(Locale locale)
          This method returns a string message with all the errors localized.
 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.
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.
 boolean hasParticipantsForActivities()
          Returns true if there are participants for activities available.
 boolean hasTargetActivities()
          Returns true if there are targetActivities available.
This means that some instances could not be routed because of a NotUniqueTransitionException
 
Methods inherited from class fuego.papi.BatchOperationException
failAll, getAvailableObjects, getMessage, getNotAvailableObjects, getStackTraceString
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, getStackTrace, 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.

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

getErrorsMessage

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

Parameters:
locale - To localize the message.
Returns:
a message with all the errors localized

getParticipantsForActivities

public ParticipantsForActivities getParticipantsForActivities()
This method returns hash.

Returns:
participants for activity.

getTargetActivities

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

Returns:
List of target activities names (ie: elements are Strings)

failAllInstances

public boolean failAllInstances()
Returns if all operations fail or not.

Returns:
true if all operations fail.

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.

Returns:
true if there are others Exceptions available.

hasParticipantsForActivities

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

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

Returns:
true if there are targetActivities available.

BPM Process API

© Copyright 1996-2008 Oracle Corporation