1 package org.apache.fulcrum.osworkflow;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 import org.apache.avalon.framework.component.Component;
25
26 import com.opensymphony.workflow.Workflow;
27 import com.opensymphony.workflow.WorkflowException;
28
29 /***
30 * WorkflowService interface.
31 *
32 * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
33 * @version $Id: WorkflowService.java 535465 2007-05-05 06:58:06Z tv $
34 */
35 public interface WorkflowService
36 extends Component
37 {
38 /*** Avalon role - used to id the component within the manager */
39 String ROLE = WorkflowService.class.getName();
40
41 /*** Retrives a workflow based on the caller
42 * @param caller the value of the caller
43 * @return the Workflow for this caller
44 */
45 public Workflow retrieveWorkflow(String caller);
46
47 /*** For a specific caller and status, return all the workflows.
48 *
49 * @param caller the value of the caller
50 * @param status the status, defined in the workflow xml file
51 * @return an array of longs of the workflow id's
52 * @throws com.opensymphony.workflow.WorkflowException if there is a problem
53 */
54 public long[] retrieveWorkflows(String caller, String status) throws WorkflowException;
55
56
57
58
59 }