ALBPM Process API

fuego.papi.exception
Class CannotCreateInstanceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fuego.lang.DefaultException
              extended by fuego.papi.OperationException
                  extended by fuego.papi.ProcessOperationException
                      extended by fuego.papi.exception.CannotCreateInstanceException
All Implemented Interfaces:
Serializable

public class CannotCreateInstanceException
extends ProcessOperationException

Exception thrown if was not possible to create a new instance because the the process instance count is equal to process instance limit or the instance failed in the creation.
With IPC/B2B this exception can be thrown because the child instance was not created.

See Also:
Serialized Form

Constructor Summary
CannotCreateInstanceException()
           
CannotCreateInstanceException(String processId)
          Creates a new CannotCreateInstanceException with the default message (PAPI-2100).
CannotCreateInstanceException(String processId, int maxInstancesCount)
          Creates a new CannotCreateInstanceException with the given process label and process identification.
CannotCreateInstanceException(String sourceInstance, String sourceActivity, String targetProcessGlobalId, Throwable cause)
          Creates a new CannotCreatInstanceException because of IPC/B2B problem.
 
Method Summary
 int getMaxInstancesCount()
           
 
Methods inherited from class fuego.papi.ProcessOperationException
getProcessId
 
Methods inherited from class fuego.papi.OperationException
wrap
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, 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

CannotCreateInstanceException

public CannotCreateInstanceException()

CannotCreateInstanceException

public CannotCreateInstanceException(String processId)
Creates a new CannotCreateInstanceException with the default message (PAPI-2100).

Parameters:
processId - process to be showed in the message

CannotCreateInstanceException

public CannotCreateInstanceException(String processId,
                                     int maxInstancesCount)
Creates a new CannotCreateInstanceException with the given process label and process identification.

Parameters:
processId - Process name.
maxInstancesCount -

CannotCreateInstanceException

public CannotCreateInstanceException(String sourceInstance,
                                     String sourceActivity,
                                     String targetProcessGlobalId,
                                     Throwable cause)
Creates a new CannotCreatInstanceException because of IPC/B2B problem.

Parameters:
sourceInstance - instance that want to create a child instance
sourceActivity - where the parent source instance is.
targetProcessGlobalId - processId formated like organizationalUnit+"/"+processName+"@"+organization, note that the process version is not present here because the creation is allways over the active version.
cause - the cause of this exception.
Method Detail

getMaxInstancesCount

public int getMaxInstancesCount()

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved