com.bea.content.virtual.workflow
Class StandardAction
java.lang.Object
com.bea.content.virtual.workflow.StandardAction
- All Implemented Interfaces
- WorkflowAction, Serializable
- Direct Known Subclasses:
- DraftAction, PublishAction, ReadyAction, RejectAction, RetireAction
public class StandardAction
- extends Object
- implements WorkflowAction
Sets the workflow status for the current version of the node to the value that's
set in the WorkflowActionContext. [getVersionableContent()]
- See Also
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA_SOURCE
public static final String DATA_SOURCE
- See Also
- Constants Summary
DEBUG
protected static Debug DEBUG
StandardAction
public StandardAction()
execute
public void execute(WorkflowActionContext actionContext)
throws WorkflowException
- Empty base method.
- Specified by:
execute
in interface WorkflowAction
- Parameters
actionContext
- The WorkflowActionContext object
- Throws
WorkflowException
- If an exception occurs
assignNodeToRoles
protected void assignNodeToRoles(WorkflowActionContext context,
Iterator<String> roles,
ID nodeId)
- This method allows users to assign a set of roles to the particular node. A typical use case is
if, as part of a transition from x -> y, the user requirs the particular node to appear the user WorkList
when they log in the admin Tools
- Parameters
context
- The workflowActionContext object. This should be the same as passed in to the executeAction
or the revertAction method.roles
- The list of rolesnodeId
- The nodeId of the node which will appear in the workList of users of specified roles....
revertAction
public void revertAction(WorkflowActionContext context,
WorkflowException cause)
throws WorkflowException
- The default revertAction implementation simply rethrows back the original exception [cause] to the caller.
- Specified by:
revertAction
in interface WorkflowAction
- Parameters
context
- THe WorkflowActionContextcause
- The workflow exception that caused the execute() method to fail
- Throws
WorkflowException
- If an error happens in this method. This implementation always throws
the cause
Copyright © 2006 BEA Systems, Inc. All Rights Reserved