org.ow2.bonita.facade.exception
Class IllegalTaskStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ow2.bonita.util.BonitaException
              extended by org.ow2.bonita.facade.exception.IllegalTaskStateException
All Implemented Interfaces:
java.io.Serializable

public class IllegalTaskStateException
extends org.ow2.bonita.util.BonitaException

Thrown if a bad state of the task is detected by the methods dedicated to change the state of the task within the RuntimeAPI.

Author:
Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras
See Also:
Serialized Form

Constructor Summary
IllegalTaskStateException(IllegalTaskStateException e)
           
IllegalTaskStateException(java.lang.String msg, org.ow2.bonita.facade.uuid.TaskUUID taskUUID, java.util.Set<org.ow2.bonita.facade.runtime.ActivityState> expectedStates, org.ow2.bonita.facade.runtime.ActivityState currentState)
          Constructs an IllegalTaskStateTException.
 
Method Summary
static IllegalTaskStateException build(java.lang.Throwable e)
           
 org.ow2.bonita.facade.runtime.ActivityState getCurrentState()
           
 java.util.Set<org.ow2.bonita.facade.runtime.ActivityState> getExpectedStates()
           
 org.ow2.bonita.facade.uuid.TaskUUID getTaskUUID()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalTaskStateException

public IllegalTaskStateException(java.lang.String msg,
                                 org.ow2.bonita.facade.uuid.TaskUUID taskUUID,
                                 java.util.Set<org.ow2.bonita.facade.runtime.ActivityState> expectedStates,
                                 org.ow2.bonita.facade.runtime.ActivityState currentState)
Constructs an IllegalTaskStateTException.

Parameters:
msg - the detail message.
taskUUID - the task Id.
expectedStates - the expected states.
currentState - the current state.

IllegalTaskStateException

public IllegalTaskStateException(IllegalTaskStateException e)
Method Detail

build

public static IllegalTaskStateException build(java.lang.Throwable e)

getTaskUUID

public org.ow2.bonita.facade.uuid.TaskUUID getTaskUUID()

getExpectedStates

public java.util.Set<org.ow2.bonita.facade.runtime.ActivityState> getExpectedStates()

getCurrentState

public org.ow2.bonita.facade.runtime.ActivityState getCurrentState()


Copyright © 2009 OW2 Consortium. All Rights Reserved.