View Javadoc

1   /*
2   	wsmo4j - a WSMO API and Reference Implementation
3   
4   	Copyright (c) 2007, Ontotext Lab. / SIRMA
5   
6   	This library is free software; you can redistribute it and/or modify it under
7   	the terms of the GNU Lesser General Public License as published by the Free
8   	Software Foundation; either version 2.1 of the License, or (at your option)
9   	any later version.
10  	This library is distributed in the hope that it will be useful, but WITHOUT
11  	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  	FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  	details.
14  	You should have received a copy of the GNU Lesser General Public License along
15  	with this library; if not, write to the Free Software Foundation, Inc.,
16  	59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */
18  
19  package org.sbpm.bpmo;
20  
21  import java.util.Set;
22  
23  import org.sbpm.upo.*;
24  import org.wsmo.service.WebService;
25  
26  public interface Process extends BusinessActivity  {
27  
28      public WebService getWebService();
29      public void setWebService(WebService webservice);
30  
31      public void addBusinessDomain(BusinessDomain domain);
32      public void removeBusinessDomain(BusinessDomain domain);
33      public Set<BusinessDomain> listBusinessDomains();
34  
35      public void addBusinessFunction(BusinessFunction function);
36      public void removeBusinessFunction(BusinessFunction function);
37      public Set<BusinessFunction> listBusinessFunctions();
38      
39      public void addBusinessStrategy(BusinessStrategy strategy);
40      public void removeBusinessStrategy(BusinessStrategy strategy);
41      public Set<BusinessStrategy> listBusinessStrategies();
42      
43      public void addBusinessPolicy(BusinessPolicy policy);
44      public void removeBusinessPolicy(BusinessPolicy policy);
45      public Set<BusinessPolicy> listBusinessPolicies();
46      
47      public void addBusinessProcessMetrics(BusinessProcessMetrics metrics);
48      public void removeBusinessProcessMetrics(BusinessProcessMetrics policy);
49      public Set<BusinessProcessMetrics> listBusinessProcessMetrics();
50  
51      public void addBusinessProcessGoal(BusinessProcessGoal goal);
52      public void removeBusinessProcessGoal(BusinessProcessGoal goal);
53      public Set<BusinessProcessGoal> listBusinessProcessGoals();
54      
55      public Actor getActor();
56      public void setActor(Actor actor);
57      
58      public void setWorkflow(Workflow workflow);
59      public Workflow getWorkflow();
60      
61      // ALL connectors within a process
62      public abstract void addConnector(ControlflowConnector conn);
63      public abstract void removeConnector(ControlflowConnector conn);
64  
65      public abstract Set<ControlflowConnector> listConnectors();
66      public abstract Set<ControlflowConnector> listIncomingConnectors(WorkflowElement node);
67      public abstract Set<ControlflowConnector> listOutgoingConnectors(WorkflowElement node);
68  
69  
70  }
71