org.apache.fulcrum.osworkflow
Interface WorkflowService

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Implementing Classes:
DefaultWorkflowService

public interface WorkflowService
extends org.apache.avalon.framework.component.Component

WorkflowService interface.

Version:
$Id: WorkflowService.java 535465 2007-05-05 06:58:06Z tv $
Author:
Eric Pugh

Field Summary
static java.lang.String ROLE
          Avalon role - used to id the component within the manager
 
Method Summary
 Workflow retrieveWorkflow(java.lang.String caller)
          Retrives a workflow based on the caller
 long[] retrieveWorkflows(java.lang.String caller, java.lang.String status)
          For a specific caller and status, return all the workflows.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Avalon role - used to id the component within the manager

Method Detail

retrieveWorkflow

public Workflow retrieveWorkflow(java.lang.String caller)
Retrives a workflow based on the caller

Parameters:
caller - the value of the caller
Returns:
the Workflow for this caller

retrieveWorkflows

public long[] retrieveWorkflows(java.lang.String caller,
                                java.lang.String status)
                         throws WorkflowException
For a specific caller and status, return all the workflows.

Parameters:
caller - the value of the caller
status - the status, defined in the workflow xml file
Returns:
an array of longs of the workflow id's
Throws:
WorkflowException - if there is a problem


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.