org.dspace.xmlworkflow.state.actions
Class ActionResult

java.lang.Object
  extended by org.dspace.xmlworkflow.state.actions.ActionResult

public class ActionResult
extends Object

A class that represent the result of an action The result consists of 2 parts a type & and a result The type is represented by an enum & can either be something like TYPE_OUTCOME: we have a certain outcome so move to another action/step TYPE_ERROR: an error has occured while processing the action ... The optional results integer is used to determine the next step once the action has completed

Author:
Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)

Nested Class Summary
static class ActionResult.TYPE
           
 
Field Summary
static int OUTCOME_COMPLETE
           
 
Constructor Summary
ActionResult(ActionResult.TYPE type)
           
ActionResult(ActionResult.TYPE type, int result)
           
 
Method Summary
 int getResult()
           
 ActionResult.TYPE getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTCOME_COMPLETE

public static final int OUTCOME_COMPLETE
See Also:
Constant Field Values
Constructor Detail

ActionResult

public ActionResult(ActionResult.TYPE type,
                    int result)

ActionResult

public ActionResult(ActionResult.TYPE type)
Method Detail

getResult

public int getResult()

getType

public ActionResult.TYPE getType()


Copyright © 2012 DuraSpace. All Rights Reserved.