de.danet.an.workflow.spis.aii
Class ResultProvider.ExceptionResult

java.lang.Object
  extended byde.danet.an.workflow.spis.aii.ResultProvider.ExceptionResult
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ResultProvider

public static class ResultProvider.ExceptionResult
extends java.lang.Object
implements java.io.Serializable

A special kind of result that may be returned by result. It causes the activity to be abandoned and the exception name used in the constructor to be signaled to the workflow engine.

See Also:
Activity.abandon(String), Serialized Form

Constructor Summary
ResultProvider.ExceptionResult(java.lang.String exceptionName)
          May be used by a tool agent implementation to create a special result that causes the activity to be abandoned, and the exception with the given name to be signaled to the workflow engine for transition evaluation.
ResultProvider.ExceptionResult(java.lang.String exceptionName, boolean suspendActivity)
          May be used by a tool agent implementation to create a special result that causes the activity to be abandoned, and the exception with the given name to be signaled to the workflow engine for transition evaluation.
 
Method Summary
 java.lang.String exceptionName()
          Return the exception name passed to the constructor.
 boolean suspendActivity()
          Return the suspend activity flag passed to the constructor.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultProvider.ExceptionResult

public ResultProvider.ExceptionResult(java.lang.String exceptionName)
May be used by a tool agent implementation to create a special result that causes the activity to be abandoned, and the exception with the given name to be signaled to the workflow engine for transition evaluation.

Parameters:
exceptionName - the name of the exception to be signaled

ResultProvider.ExceptionResult

public ResultProvider.ExceptionResult(java.lang.String exceptionName,
                                      boolean suspendActivity)
May be used by a tool agent implementation to create a special result that causes the activity to be abandoned, and the exception with the given name to be signaled to the workflow engine for transition evaluation. In addition, the invoking activity may be suspended.

Parameters:
exceptionName - the name of the exception to be signaled
suspendActivity - if true suspend the invoking activity
Method Detail

exceptionName

public java.lang.String exceptionName()
Return the exception name passed to the constructor.

Returns:
the exception name

suspendActivity

public boolean suspendActivity()
Return the suspend activity flag passed to the constructor.

Returns:
the suspend activity flag

toString

public java.lang.String toString()