Class ActionResult
- java.lang.Object
-
- 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 and can either be something like TYPE_OUTCOME: we have a certain outcome so move to another action/step TYPE_ERROR: an error has occurred 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
Nested Classes Modifier and Type Class Description static classActionResult.TYPE
-
Field Summary
Fields Modifier and Type Field Description static intOUTCOME_COMPLETE
-
Constructor Summary
Constructors Constructor Description ActionResult(ActionResult.TYPE type)ActionResult(ActionResult.TYPE type, int result)
-
-
-
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()
-
-