ALBPM Process API

fuego.papi.exception
Class InstanceNotInActivityException

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.InstanceNotInActivityException
All Implemented Interfaces:
Serializable

public class InstanceNotInActivityException
extends InstanceOperationException

A InstanceNotInActivityException is thrown as a result of an attempt to access an instance in some activity and it doesn't find in this activity.

See Also:
Serialized Form

Constructor Summary
InstanceNotInActivityException()
          Just to serialization
InstanceNotInActivityException(String globalInstanceId, String lastActivity, String currentActivity)
          Creates a new InstanceNotInActivityException with the given globalInstanceId, last activity and actual activity.
InstanceNotInActivityException(String globalInstanceId, String lastActivity, String currentActivity, int state)
          Creates a new InstanceNotInActivityException with the given last activity, globalInstanceId and actual activity.
InstanceNotInActivityException(String globalInstanceId, String lastActivity, String currentActivity, int state, InstanceInfo currentInstance)
          Creates a new InstanceNotInActivityException with the given globalInstanceId, last activity and actual activity.
 
Method Summary
 String getCurrentActivity()
          Where the instance is now.
 InstanceInfo getCurrentInstance()
           
 int getInstanceState()
          Return the state of the instance
 String getLastActivity()
          The last activity of the instance
 
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

InstanceNotInActivityException

public InstanceNotInActivityException()
Just to serialization


InstanceNotInActivityException

public InstanceNotInActivityException(String globalInstanceId,
                                      String lastActivity,
                                      String currentActivity)
Creates a new InstanceNotInActivityException with the given globalInstanceId, last activity and actual activity.

Parameters:
globalInstanceId - Instance id with organizationIncluded
lastActivity - Where the instance was supposed to be.
currentActivity - Where the instance is now.

InstanceNotInActivityException

public InstanceNotInActivityException(String globalInstanceId,
                                      String lastActivity,
                                      String currentActivity,
                                      int state)
Creates a new InstanceNotInActivityException with the given last activity, globalInstanceId and actual activity.

Parameters:
globalInstanceId - Instance id with organizationIncluded
lastActivity - Where the instance was supposed to be.
currentActivity - Where the instance is now.
state - Instance state.

InstanceNotInActivityException

public InstanceNotInActivityException(String globalInstanceId,
                                      String lastActivity,
                                      String currentActivity,
                                      int state,
                                      InstanceInfo currentInstance)
Creates a new InstanceNotInActivityException with the given globalInstanceId, last activity and actual activity.

Parameters:
globalInstanceId - Instance id with organizationIncluded
lastActivity - Where the instance was supposed to be.
currentActivity - Where the instance is now.
currentInstance - Actual instance
Method Detail

getCurrentActivity

public String getCurrentActivity()
Where the instance is now.

Returns:
result Return the activity name .

getCurrentInstance

public InstanceInfo getCurrentInstance()

getInstanceState

public int getInstanceState()
Return the state of the instance

Returns:
result Instance state identification

getLastActivity

public String getLastActivity()
The last activity of the instance

Returns:

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved