Fuego Process API

fuego.papi.exception
Class CannotCreateInstanceException


java.lang.Object

  extended byjava.lang.Throwable

      extended byjava.lang.Exception

          extended byfuego.lang.DefaultException

              extended byfuego.papi.OperationException

                  extended byfuego.papi.ProcessOperationException

                      extended byfuego.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, 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

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()

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved