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  public interface Task extends WorkflowElement, TaskOrReceiveMessageEvent, TaskOrSendMessageEvent, BusinessActivity {
24  
25      public SendMessageEvent getMessageFrom();
26      public void setMessageFrom(SendMessageEvent messageFrom);
27  
28      public ReceiveMessageEvent getMessageTo();
29      public void setMessageTo(ReceiveMessageEvent messageTo);
30  
31      public void addDataInput(DataTypeEntity input);
32      public void removeDataInput(DataTypeEntity input);
33      public Set<DataTypeEntity> listDataInputs();
34  
35      public void addDataOutput(DataTypeEntity output);
36      public void removeDataOutput(DataTypeEntity output);
37      public Set<DataTypeEntity> listDataOutputs();
38      
39      public SemanticCapability getRequestedCapability();
40      public void setRequestedCapability(SemanticCapability capability);
41  
42      public SemanticCapability getProvidedCapability();
43      public void setProvidedCapability(SemanticCapability capability);
44      
45      public PartnerInteraction getPartnerInteraction();
46      public void setPartnerInteraction(PartnerInteraction interaction);
47      
48  
49  
50  }