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

java.lang.Object
  extended byde.danet.an.workflow.spis.aii.ResultProvider.ExceptionResult
Enclosing class:
ResultProvider

public static class ResultProvider.ExceptionResult
extends java.lang.Object

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)

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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