Fuego Process API

fuego.papi.exception
Class InstancesException


java.lang.Object

  extended byjava.lang.Throwable

      extended byjava.lang.Exception

          extended byfuego.lang.DefaultException

              extended byfuego.papi.BatchOperationException

                  extended byfuego.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 otherExceptions, boolean failAll)
           
InstancesException(InstanceInfo[] instances, Map 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, hasTechnicalDetail
 
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 otherExceptions,
                          List targetActs,
                          ParticipantsForActivities participantsForActivities,
                          boolean failAll)

InstancesException


public InstancesException(InstanceInfo[] instances,
                          Map otherExceptions,
                          boolean failAll)
Method Detail

getAvailableInstances


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

Returns:

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

Returns:

getTargetActivities


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

Returns:

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.

Returns:

hasParticipantsForActivities


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

Returns:

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:

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved