|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.virtual.workflow.StandardAction
public class StandardAction
Sets the workflow status for the current version of the node to the value that's set in the WorkflowActionContext. [getVersionableContent()]
Field Summary | |
---|---|
static String |
DATA_SOURCE
|
protected static Debug |
DEBUG
|
Constructor Summary | |
---|---|
StandardAction()
|
Method Summary | |
---|---|
protected void |
assignNodeToRoles(WorkflowActionContext context,
Iterator<String> roles,
ID nodeId)
This method allows users to assign a set of roles to the node. |
protected void |
assignNodeToUser(WorkflowActionContext context,
String username,
ID nodeId)
This method allows users to assign a user to the node. |
void |
execute(WorkflowActionContext actionContext)
Empty base method. |
void |
revertAction(WorkflowActionContext context,
WorkflowException cause)
The default revertAction implementation simply rethrows back the original exception [cause] to the caller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATA_SOURCE
protected static Debug DEBUG
Constructor Detail |
---|
public StandardAction()
Method Detail |
---|
public void execute(WorkflowActionContext actionContext) throws WorkflowException
execute
in interface WorkflowAction
actionContext
- The WorkflowActionContext object
WorkflowException
- If an exception occursprotected void assignNodeToRoles(WorkflowActionContext context, Iterator<String> roles, ID nodeId)
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.protected void assignNodeToUser(WorkflowActionContext context, String username, ID nodeId)
context
- The workflowActionContext object. This should be the same as passed in to the executeAction
or the revertAction method.username
- The usernamenodeId
- The nodeId of the node which will appear in the workList of users of specified roles.public void revertAction(WorkflowActionContext context, WorkflowException cause) throws WorkflowException
revertAction
in interface WorkflowAction
context
- The WorkflowActionContextcause
- The workflow exception that caused the execute() method to fail
WorkflowException
- If an error happens in this method. This implementation always throws
the cause
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |