org.eaglei.repository.model.workflow
Class ErrorAction

java.lang.Object
  extended by org.eaglei.repository.model.workflow.ErrorAction
All Implemented Interfaces:
WorkflowAction

public class ErrorAction
extends java.lang.Object
implements WorkflowAction

This is a marker class. Setting a WorkflowTransition's action to an instance of ErrorAction indicates there was a problem instantiating the true action -- in most cases, the reason will be recorded in the "message" member. However, when /import reads transitions with bogus actions, the true error message is lost (although it still appears in the log) because the RDF representation of the transition only remembers the class of ErrorAction, not its message.


Constructor Summary
ErrorAction()
          Default Constructor
ErrorAction(java.lang.String m)
          Constructor, with error message
 
Method Summary
 java.lang.String getMessage()
          Getter for message
 void onTransition(javax.servlet.http.HttpServletRequest request, org.openrdf.model.URI resource, org.openrdf.model.Value param)
          This method gets called when an instance undergoes a workflow transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorAction

public ErrorAction()
Default Constructor


ErrorAction

public ErrorAction(java.lang.String m)
Constructor, with error message

Method Detail

getMessage

public java.lang.String getMessage()
Getter for message


onTransition

public void onTransition(javax.servlet.http.HttpServletRequest request,
                         org.openrdf.model.URI resource,
                         org.openrdf.model.Value param)
                  throws java.lang.Exception
This method gets called when an instance undergoes a workflow transition. The parameter "param" comes from the transition itself.

Specified by:
onTransition in interface WorkflowAction
Throws:
java.lang.Exception


Copyright © 2009-2011 Eagle-I. All Rights Reserved.