1 /*$Id: WorkflowBuilder.java,v 1.5 2004/03/11 13:53:36 nw Exp $
2 * Created on 01-Mar-2004
3 *
4 * Copyright (C) AstroGrid. All rights reserved.
5 *
6 * This software is published under the terms of the AstroGrid
7 * Software License version 1.2, a copy of which has been included
8 * with this distribution in the LICENSE.txt file.
9 *
10 **/
11 package org.astrogrid.portal.workflow.intf;
12
13 import org.astrogrid.community.beans.v1.Credentials;
14 import org.astrogrid.workflow.beans.v1.Workflow;
15
16 /*** A component of methods to help build workflow documents
17 * @author Noel Winstanley nw@jb.man.ac.uk 01-Mar-2004
18 *
19 */
20 public interface WorkflowBuilder {
21
22 /*** create a workflow object
23 *
24 * @param creds credentials for this workflow - contains account, group and authentication token for the user this workflow is going to run as.
25 * @param name name of the new workflow
26 * @param description a textual description of the workflow
27 * @return a new workflow document object, that is schema-valid. never null
28 */
29 Workflow createWorkflow(Credentials creds,String name,String description) throws WorkflowInterfaceException;
30
31 }
32
33 /*
34 $Log: WorkflowBuilder.java,v $
35 Revision 1.5 2004/03/11 13:53:36 nw
36 merged in branch bz#236 - implementation of interfaces
37
38 Revision 1.4.2.1 2004/03/11 13:36:46 nw
39 tidied up interfaces, documented
40
41 Revision 1.4 2004/03/09 15:33:27 nw
42 tidied imports
43
44 Revision 1.3 2004/03/03 11:15:23 nw
45 tarted up javadocs, reviewed types
46
47 Revision 1.2 2004/03/03 01:36:38 nw
48 merged interfaces in from branch nww-int05-bz#146
49
50 Revision 1.1.2.2 2004/03/03 01:18:00 nw
51 commited first draft of interface design
52
53 Revision 1.1.2.1 2004/03/01 19:02:57 nw
54 refined interfaces. almost ready to publish
55
56 */