org.hypergraphdb.peer.workflow
Class ActivityResult

java.lang.Object
  extended by org.hypergraphdb.peer.workflow.ActivityResult

public final class ActivityResult
extends java.lang.Object

A simple bean to hold the outcome of an activity once it has finished execution. The activity might have completed successfully, or it might have failed or it might have been explicitly canceled at some point. This will be indicated by its state. In case it failed, there might by some additional information on why it failed - either an exception that occurred at this peer or due to a remote exception

Author:
Borislav Iordanov

Constructor Summary
ActivityResult(Activity activity)
           
ActivityResult(Activity activity, java.lang.Throwable exception)
           
 
Method Summary
 Activity getActivity()
           
 java.lang.Throwable getException()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityResult

public ActivityResult(Activity activity)

ActivityResult

public ActivityResult(Activity activity,
                      java.lang.Throwable exception)
Method Detail

getActivity

public Activity getActivity()

getException

public java.lang.Throwable getException()