com.silverpeas.workflow.api.model
Interface Actions

All Known Implementing Classes:
ActionsImpl

public interface Actions

Interface describing a representation of the <actions> element of a Process Model.


Method Summary
 void addAction(Action action)
          Add an action to the collection
 Action createAction()
          Create an Action
 Action getAction(String name)
          Get the action definition with given name
 Action[] getActions()
          Get the actions defined for this process model
 Iterator<Action> iterateAction()
          Iterate through the Action objects
 void removeAction(String strActionName)
          Remove an action from the collection
 

Method Detail

iterateAction

Iterator<Action> iterateAction()
Iterate through the Action objects

Returns:
an iterator

createAction

Action createAction()
Create an Action

Returns:
an object implementing Action

addAction

void addAction(Action action)
Add an action to the collection

Parameters:
action - to be added

getActions

Action[] getActions()
Get the actions defined for this process model

Returns:
actions defined for this process model

getAction

Action getAction(String name)
                 throws WorkflowException
Get the action definition with given name

Parameters:
name - action name
Returns:
wanted action definition
Throws:
WorkflowException

removeAction

void removeAction(String strActionName)
                  throws WorkflowException
Remove an action from the collection

Parameters:
strActionName - the name of the action to be removed.
Throws:
WorkflowException - when the action cannot be found


Copyright © 2016 Silverpeas. All Rights Reserved.