ALBPM Process API

fuego.papi.exception
Class TaskOperationException

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.TaskOperationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExternalTaskException, NoTasksRunningException, NotExternalTaskException, SharedParentInstanceBusyException, TaskAlreadySelectedException, TaskCompletedException, TaskFailedException, TaskNotRunningException, TaskNotUnselectedException

public class TaskOperationException
extends InstanceOperationException

A TaskOperationException is thrown when task operation error occurs. It could be the task has been aborted, it has invalid arguments or conversion of arguments, task has already been executed, task has already been selected.

See Also:
Serialized Form

Constructor Summary
TaskOperationException(String instanceId, String activityId, int taskNumber)
          Creates a new TaskOperationException with the given msgCode, instanceId and taskNumber.
TaskOperationException(String instanceId, String activityId, int taskNumber, Throwable cause)
          Creates a new TaskOperationException with the given taskNumber and the given cause.
 
Method Summary
 String getActivityId()
           
 int getTaskNumber()
           
 
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

TaskOperationException

public TaskOperationException(String instanceId,
                              String activityId,
                              int taskNumber,
                              Throwable cause)
Creates a new TaskOperationException with the given taskNumber and the given cause.

Parameters:
instanceId - Instance identification.
activityId - Activity identification.
taskNumber - Task number.
cause - The original cause for the task failure.

TaskOperationException

public TaskOperationException(String instanceId,
                              String activityId,
                              int taskNumber)
Creates a new TaskOperationException with the given msgCode, instanceId and taskNumber.

Parameters:
instanceId - Instance identification.
activityId - Activity identification.
taskNumber - Task number.
Method Detail

getActivityId

public String getActivityId()

getTaskNumber

public int getTaskNumber()

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved