|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.workflow.repository.XMLWorkflowRepository
public class XMLWorkflowRepository
A WorkflowRepository that loads events, Workflows,
WorkflowTasks and WorkflowConditions from specialized xml
files. The WorkflowRepository is given an initial set of seed directory uris,
where it looks for the following files:
| Constructor Summary | |
|---|---|
XMLWorkflowRepository(List uris)
Constructs a new XMLWorkflowRepository with the given parameter uris. |
|
| Method Summary | |
|---|---|
String |
addTask(WorkflowTask task)
Adds the provided new WorkflowTask to the model repository. |
String |
addWorkflow(Workflow workflow)
Adds the specified new Workflow to this Repository. |
List |
getConditionsByTaskId(String taskId)
Returns an ordered List of WorkflowConditions associated
with the given taskId. |
List |
getConditionsByTaskName(String taskName)
Returns an ordered List of WorkflowConditions associated
with the given taskName. |
List<WorkflowCondition> |
getConditionsByWorkflowId(String workflowId)
Gets the associated WorkflowConditions for this Workflow
specified by its workflowId. |
WorkflowTaskConfiguration |
getConfigurationByTaskId(String taskId)
Gets the WorkflowTaskConfiguration metadata for the
WorkflowTask with the given taskId. |
List |
getRegisteredEvents()
Gets a List of Events that are registered in the
Workflow Manager as having valid Workflows mapped to their names. |
WorkflowTask |
getTaskById(String taskId)
Returns the WorkflowTask identified by the given taskId. |
List |
getTasksByWorkflowId(String workflowId)
Returns a List of WorkflowTasks associated with the
specified Workflow identified by its workflowId. |
List |
getTasksByWorkflowName(String workflowName)
Returns a List of WorkflowTasks associated with the
specified Workflow identified by its workflowName. |
Workflow |
getWorkflowById(String workflowId)
Returns a Workflow with the given workflowId. |
Workflow |
getWorkflowByName(String workflowName)
Returns a Workflow with the given workflowName. |
WorkflowCondition |
getWorkflowConditionById(String conditionId)
Returns the WorkflowCondition with the given
conditionId. |
List |
getWorkflows()
Gets all Workflows from the repository. |
List |
getWorkflowsForEvent(String eventName)
Returns a List of Workflows associated with the specified
eventName. |
WorkflowTask |
getWorkflowTaskById(String taskId)
Returns the WorkflowTask with the given taskId. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWorkflowRepository(List uris)
Constructs a new XMLWorkflowRepository with the given parameter
uris.
uris - URIs pointing to directories that follow the XML workflow
repository convention documented at the top of this class.| Method Detail |
|---|
public List getRegisteredEvents()
throws RepositoryException
WorkflowRepository
Gets a List of Events that are registered in the
Workflow Manager as having valid Workflows mapped to their names.
getRegisteredEvents in interface WorkflowRepositoryList of Events that are registered in the
Workflow Manager as having valid Workflows mapped to their
names.
RepositoryException - If any error occurs.
public WorkflowTask getWorkflowTaskById(String taskId)
throws RepositoryException
WorkflowRepository
Returns the WorkflowTask with the given taskId.
getWorkflowTaskById in interface WorkflowRepositorytaskId - The ID of the WorkflowTask to return.
WorkflowTask with the given taskId.
RepositoryException - If any error occurs.
public WorkflowCondition getWorkflowConditionById(String conditionId)
throws RepositoryException
WorkflowRepository
Returns the WorkflowCondition with the given
conditionId.
getWorkflowConditionById in interface WorkflowRepositoryconditionId - The ID of the WorkflowCondition to return.
WorkflowCondition with the given
conditionId.
RepositoryException - If any error occurs.
public Workflow getWorkflowByName(String workflowName)
throws RepositoryException
WorkflowRepository
Returns a Workflow with the given workflowName.
getWorkflowByName in interface WorkflowRepositoryworkflowName - The name of the Workflow to obtain.
Workflow with the specified name.
RepositoryException - If any error occurs.
public Workflow getWorkflowById(String workflowId)
throws RepositoryException
WorkflowRepository
Returns a Workflow with the given workflowId.
getWorkflowById in interface WorkflowRepositoryworkflowId - The ID of the Workflow to obtain.
Workflow with the given ID.
RepositoryException - If any error occurs.
public List getWorkflows()
throws RepositoryException
WorkflowRepository
Gets all Workflows from the repository.
getWorkflows in interface WorkflowRepositoryList of all Workflows in the repository.
RepositoryException - If any error occurs.
public List getTasksByWorkflowId(String workflowId)
throws RepositoryException
WorkflowRepository
Returns a List of WorkflowTasks associated with the
specified Workflow identified by its workflowId.
getTasksByWorkflowId in interface WorkflowRepositoryworkflowId - The ID of the Workflow to obtain the List of
WorkflowTasks for.
List of WorkflowTasks associated with the
specified Workflow.
RepositoryException - If any error occurs.
public List getTasksByWorkflowName(String workflowName)
throws RepositoryException
WorkflowRepository
Returns a List of WorkflowTasks associated with the
specified Workflow identified by its workflowName.
getTasksByWorkflowName in interface WorkflowRepositoryworkflowName - The Name of the Workflow to obtain the List of
WorkflowTasks for.
List of WorkflowTasks associated with the
specified Workflow.
RepositoryException - If any error occurs.
public List getWorkflowsForEvent(String eventName)
throws RepositoryException
WorkflowRepository
Returns a List of Workflows associated with the specified
eventName.
getWorkflowsForEvent in interface WorkflowRepositoryeventName - The name of the event to search for workflows for.
List of Workflows associated with the specified
event.
RepositoryException - If any error occurs.
public List getConditionsByTaskName(String taskName)
throws RepositoryException
WorkflowRepository
Returns an ordered List of WorkflowConditions associated
with the given taskName.
getConditionsByTaskName in interface WorkflowRepositorytaskName - The taskName to obtain the conditions for.
List of WorkflowConditions associated
with the given taskName
RepositoryException - If any error occurs.
public List getConditionsByTaskId(String taskId)
throws RepositoryException
WorkflowRepository
Returns an ordered List of WorkflowConditions associated
with the given taskId.
getConditionsByTaskId in interface WorkflowRepositorytaskId - The ID of the task to obtain the conditions for.
List of WorkflowConditions associated
with the given taskId
RepositoryException - If any error occurs.
public WorkflowTaskConfiguration getConfigurationByTaskId(String taskId)
throws RepositoryException
WorkflowRepository
Gets the WorkflowTaskConfiguration metadata for the
WorkflowTask with the given taskId.
getConfigurationByTaskId in interface WorkflowRepositorytaskId - The ID of the WorkflowTask to get the
WorkflowTaskConfiguration metadata for.
WorkflowTaskConfiguration metadata for the
WorkflowTask with the given taskId.
RepositoryException - If any error occurs.
public String addTask(WorkflowTask task)
throws RepositoryException
WorkflowRepositoryWorkflowTask to the model repository.
addTask in interface WorkflowRepositorytask - The new WorkflowTask to add.
WorkflowTask. Calling this
function and providing a task with its identifier already set will cause
this function to return that same identifier back.
RepositoryException - If any error occurs.
public String addWorkflow(Workflow workflow)
throws RepositoryException
WorkflowRepositoryWorkflow to this Repository.
addWorkflow in interface WorkflowRepositoryworkflow - The Workflow to add.
Workflow as defined by this
repository.
RepositoryException - If any error occurs.
public List<WorkflowCondition> getConditionsByWorkflowId(String workflowId)
throws RepositoryException
WorkflowRepositoryWorkflowConditions for this Workflow
specified by its workflowId.
getConditionsByWorkflowId in interface WorkflowRepositoryworkflowId - The Identifier of the Workflow to get the
WorkflowConditions for.
List of WorkflowConditions for this
Workflow.
RepositoryException - If any error occurs.
public WorkflowTask getTaskById(String taskId)
throws RepositoryException
WorkflowRepositoryWorkflowTask identified by the given taskId.
getTaskById in interface WorkflowRepositorytaskId - The identifier for the WorkflowTask to return.
WorkflowTask identified by the given taskId.
RepositoryException - If any error occurs.
public static void main(String[] args)
throws RepositoryException
args -
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||