Fuego Process API

fuego.papi.exception
Class InstanceNotInActivityException


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.InstanceOperationException

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

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:

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved