KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > ejb > WorkflowRemote


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 /*
6  * Generated by XDoclet - Do not edit!
7  */

8 package com.opensymphony.workflow.ejb;
9
10
11 /**
12  * Remote interface for Workflow.
13  * @author <a HREF="mailto:plightbo@hotmail.com">Pat Lightbody</a>
14  * @author <a HREF="mailto:hani@formicary.net">Hani Suleiman</a>
15  * @version $Revision: 1.5 $
16  */

17 public interface WorkflowRemote extends javax.ejb.EJBObject JavaDoc {
18     //~ Methods ////////////////////////////////////////////////////////////////
19

20     public int[] getAvailableActions(long id) throws java.rmi.RemoteException JavaDoc;
21
22     /**
23      * Get the available actions for the specified workflow instance.
24      * @param id The workflow instance id.
25      * @param inputs The inputs map to pass on to conditions
26      * @return An array of action id's that can be performed on the specified entry.
27      * @throws IllegalArgumentException if the specified id does not exist, or if its workflow descriptor is no longer available or has become invalid. */

28     public int[] getAvailableActions(long id, java.util.Map JavaDoc inputs) throws java.rmi.RemoteException JavaDoc;
29
30     public void setConfiguration(com.opensymphony.workflow.config.Configuration configuration) throws java.rmi.RemoteException JavaDoc;
31
32     public java.util.List JavaDoc getCurrentSteps(long id) throws java.rmi.RemoteException JavaDoc;
33
34     public int getEntryState(long id) throws java.rmi.RemoteException JavaDoc;
35
36     public java.util.List JavaDoc getHistorySteps(long id) throws java.rmi.RemoteException JavaDoc;
37
38     public java.util.Properties JavaDoc getPersistenceProperties() throws java.rmi.RemoteException JavaDoc;
39
40     /**
41      * Get the PropertySet for the specified workflow ID
42      * @param id The workflow ID */

43     public com.opensymphony.module.propertyset.PropertySet getPropertySet(long id) throws java.rmi.RemoteException JavaDoc;
44
45     public java.util.List JavaDoc getSecurityPermissions(long id) throws java.rmi.RemoteException JavaDoc;
46
47     /**
48      * Returns a workflow definition object associated with the given name.
49      * @param workflowName the name of the workflow
50      * @return the object graph that represents a workflow definition
51      */

52     public com.opensymphony.workflow.loader.WorkflowDescriptor getWorkflowDescriptor(java.lang.String JavaDoc workflowName) throws java.rmi.RemoteException JavaDoc;
53
54     public java.lang.String JavaDoc getWorkflowName(long id) throws java.rmi.RemoteException JavaDoc;
55
56     /**
57      * Get a list of workflow names available
58      * @return String[] an array of workflow names.
59      */

60     public java.lang.String JavaDoc[] getWorkflowNames() throws java.rmi.RemoteException JavaDoc;
61
62     public boolean canInitialize(java.lang.String JavaDoc workflowName, int initialAction) throws java.rmi.RemoteException JavaDoc;
63
64     public boolean canInitialize(java.lang.String JavaDoc workflowName, int initialAction, java.util.Map JavaDoc inputs) throws java.rmi.RemoteException JavaDoc;
65
66     public boolean canModifyEntryState(long id, int newState) throws java.rmi.RemoteException JavaDoc;
67
68     public void changeEntryState(long id, int newState) throws com.opensymphony.workflow.WorkflowException, java.rmi.RemoteException JavaDoc;
69
70     public void doAction(long id, int actionId, java.util.Map JavaDoc inputs) throws com.opensymphony.workflow.WorkflowException, java.rmi.RemoteException JavaDoc;
71
72     public void executeTriggerFunction(long id, int triggerId) throws com.opensymphony.workflow.WorkflowException, java.rmi.RemoteException JavaDoc;
73
74     public long initialize(java.lang.String JavaDoc workflowName, int initialAction, java.util.Map JavaDoc inputs) throws com.opensymphony.workflow.InvalidRoleException, com.opensymphony.workflow.InvalidInputException, com.opensymphony.workflow.StoreException, com.opensymphony.workflow.WorkflowException, java.rmi.RemoteException JavaDoc;
75
76     public java.util.List JavaDoc query(com.opensymphony.workflow.query.WorkflowQuery query) throws com.opensymphony.workflow.StoreException, java.rmi.RemoteException JavaDoc;
77
78     public java.util.List JavaDoc query(com.opensymphony.workflow.query.WorkflowExpressionQuery query) throws com.opensymphony.workflow.WorkflowException, java.rmi.RemoteException JavaDoc;
79
80     public boolean removeWorkflowDescriptor(java.lang.String JavaDoc workflowName) throws com.opensymphony.workflow.FactoryException, java.rmi.RemoteException JavaDoc;
81
82     public boolean saveWorkflowDescriptor(java.lang.String JavaDoc workflowName, com.opensymphony.workflow.loader.WorkflowDescriptor descriptor, boolean replace) throws com.opensymphony.workflow.FactoryException, java.rmi.RemoteException JavaDoc;
83 }
84
Popular Tags