ALBPM Process API

fuego.papi.exception
Class CannotLockInstanceException

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.InstanceOperationException
                          extended by fuego.papi.exception.CannotLockInstanceException
All Implemented Interfaces:
Serializable

public class CannotLockInstanceException
extends InstanceOperationException

A CannotLockInstanceException is thrown as a result of an attempt to lock an instance.

See Also:
Serialized Form

Constructor Summary
CannotLockInstanceException(String instanceId)
          Creates a new CannotLockInstanceException with the given instanceId.
CannotLockInstanceException(String instanceId, String instanceOwner, boolean isSameParticipant)
          Creates a new CannotLockInstanceException with the given instance and instanceOuner.
 
Method Summary
 String getInstanceOwner()
          Return the instance owner
 boolean isSameParticipant()
          Return true if the instance is locked by the same participant
 
Methods inherited from class fuego.papi.exception.InstanceOperationException
getInstanceId
 
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

CannotLockInstanceException

public CannotLockInstanceException(String instanceId)
Creates a new CannotLockInstanceException with the given instanceId.

Parameters:
instanceId - Instance identification.

CannotLockInstanceException

public CannotLockInstanceException(String instanceId,
                                   String instanceOwner,
                                   boolean isSameParticipant)
Creates a new CannotLockInstanceException with the given instance and instanceOuner.

Parameters:
instanceId - Instance name.
instanceOwner - Instance owner.
Method Detail

getInstanceOwner

public String getInstanceOwner()
Return the instance owner

Returns:
Participant Identification

isSameParticipant

public boolean isSameParticipant()
Return true if the instance is locked by the same participant

Returns:
isSameParticipant

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved