org.apache.lenya.workflow.impl
Class ActionImpl

java.lang.Object
  extended by org.apache.lenya.workflow.impl.ActionImpl
All Implemented Interfaces:
Action

public class ActionImpl
extends java.lang.Object
implements Action

Basic action implementation.


Constructor Summary
protected ActionImpl(java.lang.String actionId)
          Creates a new instance of ActionImpl.
 
Method Summary
 void execute(WorkflowInstance instance)
          Executes this action for a given workflow instance.
 java.lang.String getId()
          Returns the action ID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionImpl

protected ActionImpl(java.lang.String actionId)
Creates a new instance of ActionImpl.

Parameters:
actionId - The action ID.
Method Detail

getId

public java.lang.String getId()
Returns the action ID.

Returns:
A string.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

execute

public void execute(WorkflowInstance instance)
             throws WorkflowException
Description copied from interface: Action
Executes this action for a given workflow instance.

Specified by:
execute in interface Action
Parameters:
instance - the workflow instance
Throws:
WorkflowException - if the execution failed
See Also:
Action.execute(org.apache.lenya.workflow.WorkflowInstance)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.