ALBPM Process API (PAPI)

fuego.papi.exception
Class CannotLockInstanceException

java.lang.Object
  extended byDefaultException
      extended byfuego.papi.OperationException
          extended byfuego.papi.ProcessOperationException
              extended byfuego.papi.exception.InstanceOperationException
                  extended byfuego.papi.exception.CannotLockInstanceException

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()
          Returns the instance owner
 boolean isSameParticipant()
          Returns 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, 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()
Returns the instance owner

Returns:
Participant Identification

isSameParticipant

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

Returns:
isSameParticipant

ALBPM Process API (PAPI)

© Copyright 1996/2005 Fuego Inc. All Rights Reserved