Class ActionsImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.ActionsImpl
-
- All Implemented Interfaces:
Serializable
,Actions
public class ActionsImpl extends Object implements Serializable, Actions
Class implementing the representation of the <actions> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionsImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAction(Action action)
Add an action to the collectionAction
createAction()
Create an ActionAction
getAction(String name)
Get the action definition with given nameAction[]
getActions()
Get the actions defined for this process modelIterator<Action>
iterateAction()
Iterate through the Action objectsvoid
removeAction(String strActionName)
Remove an action from the collection
-
-
-
Method Detail
-
addAction
public void addAction(Action action)
Description copied from interface:Actions
Add an action to the collection
-
createAction
public Action createAction()
Description copied from interface:Actions
Create an Action- Specified by:
createAction
in interfaceActions
- Returns:
- an object implementing Action
-
getAction
public Action getAction(String name) throws WorkflowException
Description copied from interface:Actions
Get the action definition with given name- Specified by:
getAction
in interfaceActions
- Parameters:
name
- action name- Returns:
- wanted action definition
- Throws:
WorkflowException
- if an error occurs while getting the action with the specified name.
-
getActions
public Action[] getActions()
Description copied from interface:Actions
Get the actions defined for this process model- Specified by:
getActions
in interfaceActions
- Returns:
- actions defined for this process model
-
iterateAction
public Iterator<Action> iterateAction()
Description copied from interface:Actions
Iterate through the Action objects- Specified by:
iterateAction
in interfaceActions
- Returns:
- an iterator
-
removeAction
public void removeAction(String strActionName) throws WorkflowException
Description copied from interface:Actions
Remove an action from the collection- Specified by:
removeAction
in interfaceActions
- Parameters:
strActionName
- the name of the action to be removed.- Throws:
WorkflowException
- when the action cannot be found
-
-