|
BPM Process API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
fuego.lang.DefaultException
fuego.papi.BatchOperationException
fuego.papi.exception.InstancesException
public class InstancesException
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.
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 |
|---|
public InstancesException(InstanceInfo[] instances,
Map<String,Throwable> otherExceptions,
boolean failAll)
public InstancesException(InstanceInfo[] instances,
Map<String,Throwable> otherExceptions,
List targetActs,
ParticipantsForActivities participantsForActivities,
boolean failAll)
| Method Detail |
|---|
public InstanceInfo[] getAvailableInstances()
public final String getErrorsMessage()
public final String getErrorsMessage(Locale locale)
locale - To localize the message.
public ParticipantsForActivities getParticipantsForActivities()
public List getTargetActivities()
public boolean failAllInstances()
true if all operations fail.public boolean hasErrors()
true if there are others Exceptions available.public boolean hasParticipantsForActivities()
true if there are participants for activities available.public boolean hasTargetActivities()
true if there are targetActivities available.
|
BPM Process API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||