001: /*
002: * This file is part of the WfXML servlet.
003: * Copyright (C) 2001-2006 Danet GmbH (www.danet.de), BU BTS.
004: * All rights reserved.
005: *
006: * This program is free software; you can redistribute it and/or modify
007: * it under the terms of the GNU General Public License as published by
008: * the Free Software Foundation; either version 2 of the License, or
009: * (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: * $Id: Consts.java,v 1.7 2007/03/29 11:46:54 schnelle Exp $
021: *
022: * $Log: Consts.java,v $
023: * Revision 1.7 2007/03/29 11:46:54 schnelle
024: * Reactivated ASAPException to propagate ASAP error messages in cases of an invalid key, a missing resource or an invalid factory.
025: *
026: * Revision 1.6 2007/02/01 12:38:36 schnelle
027: * Use of encoded key for properties.
028: *
029: * Revision 1.5 2007/01/31 22:55:36 mlipp
030: * Some more refactoring and fixes of problems introduced by refactoring.
031: *
032: * Revision 1.4 2007/01/31 12:24:06 drmlipp
033: * Design revisited.
034: *
035: * Revision 1.3 2007/01/31 10:55:31 schnelle
036: * Fixed typo in constants.
037: *
038: * Revision 1.2 2007/01/30 11:56:14 drmlipp
039: * Merged Wf-XML branch.
040: *
041: * Revision 1.1.6.12 2007/01/24 09:28:53 schnelle
042: * Returning result data for the instance.
043: *
044: * Revision 1.1.6.11 2007/01/19 15:01:59 schnelle
045: * Returning context data at instance getproperties.
046: *
047: * Revision 1.1.6.10 2007/01/11 11:37:10 schnelle
048: * Added subscription if an oberver key is given in the creation of a process.
049: *
050: * Revision 1.1.6.9 2007/01/11 10:23:52 schnelle
051: * Creation of StateChanged notifications.
052: *
053: * Revision 1.1.6.8 2007/01/09 12:05:33 schnelle
054: * Adapted NS of WFXML.
055: *
056: * Revision 1.1.6.7 2006/12/11 11:05:34 schnelle
057: * Added template methods for all requests.
058: *
059: * Revision 1.1.6.6 2006/11/30 12:45:08 schnelle
060: * Basic implementation of Factory CreateInstance.
061: *
062: * Revision 1.1.6.5 2006/11/30 10:38:08 schnelle
063: * Implementation of Factory ListInstance.
064: *
065: * Revision 1.1.6.4 2006/11/29 14:12:37 schnelle
066: * Take respect to namespaces of asap requests and responses.
067: *
068: * Revision 1.1.6.3 2006/11/29 11:05:22 schnelle
069: * Full implementation of the request and response headers.
070: *
071: * Revision 1.1.6.2 2006/11/28 15:31:51 schnelle
072: * Proper selection of the response generator.
073: *
074: * Revision 1.1.6.1 2006/11/27 15:43:34 schnelle
075: * Removed public final static modifier for constant attributes.
076: *
077: * Revision 1.1 2005/04/06 21:08:06 mlipp
078: * Getting on...
079: *
080: */
081: package de.danet.an.workflow.clients.wfxml;
082:
083: /**
084: * This interface defines some constants that are used within the protocol.
085: *
086: * @author Michael Lipp
087: * @author Dirk Schnelle
088: *
089: * @version $Revision: 1.7 $
090: */
091: public interface Consts {
092:
093: /** The URI of the ASAP version used. */
094: String ASAP_NS = "http://www.oasis-open.org/asap/0.9/asap.xsd";
095:
096: /** Namespace prefix vor ASAP. */
097: String ASAP_PREFIX = "as";
098:
099: /** Response element in the header. */
100: String RESPONSE_HEADER = "Response";
101:
102: /** request element in the header. */
103: String REQUEST_HEADER = "Request";
104:
105: /**
106: * Header key of the resource that the request or response is being made to.
107: */
108: String RECEIVER_KEY = "ReceiverKey";
109:
110: /**
111: * Header URI or key of of the resource that originated the request or
112: * response.
113: */
114: String SENDER_KEY = "SenderKey";
115:
116: /** Unique ID specified by the requester in the header. */
117: String REQUEST_ID = "RequestID";
118:
119: /** The namespace for WfXML. */
120: String WFXML_NS = "http://www.wfmc.org/wfxml/2.0/wfxml20.xsd";
121:
122: /** Namespace prefix for WfXML. */
123: String WFXML_PREFIX = "wfxml";
124:
125: /** Namespace prefix for context data. */
126: String CD_PREFIX = "cd";
127:
128: /** Namespace prefix for result data. */
129: String RS_PREFIX = "rs";
130:
131: String LIST_DEFINITIONS_REQUEST = "ListDefinitionsRq";
132:
133: String LIST_DEFINITIONS_RESPONSE = "ListDefinitionsRs";
134:
135: String NEW_DEFINITION_REQUEST = "NewDefinitionRq";
136:
137: String NEW_DEFINITION_RESPONSE = "NewDefinitionRs";
138:
139: String GET_PROPERTIES_REQUEST = "GetPropertiesRq";
140:
141: String GET_PROPERTIES_RESPONSE = "GetPropertiesRs";
142:
143: String SET_PROPERTIES_RESPONSE = "SetPropertiesRs";
144:
145: String SET_PROPERTIES_REQUEST = "SetPropertiesRq";
146:
147: String GET_DEFINITION_REQUEST = "GetDefinitionRq";
148:
149: String GET_DEFINITION_RESPONSE = "GetDefinitionRs";
150:
151: String SET_DEFINITION_REQUEST = "SetDefinitionRq";
152:
153: String SET_DEFINITION_RESPONSE = "SetDefinitionRs";
154:
155: String LIST_INSTANCES_REQUEST = "ListInstancesRq";
156:
157: String LIST_INSTANCES_RESPONSE = "ListInstancesRs";
158:
159: String CREATE_INSTANCE_REQUEST = "CreateInstanceRq";
160:
161: String CREATE_INSTANCE_RESPONSE = "CreateInstanceRs";
162:
163: String SUBSCRIBE_REQUEST = "SubscribeRq";
164:
165: String SUBSCRIBE_RESPONSE = "SubscribeRs";
166:
167: String UNSUBSCRIBE_REQUEST = "UnsubscribeRq";
168:
169: String UNSUBSCRIBE_RESPONSE = "UnsubscribeRs";
170:
171: String LIST_ACTIVITIES_REQUEST = "ListActivitiesRq";
172:
173: String LIST_ACTIVITIES_RESPONSE = "ListActivitiesRs";
174:
175: String CHANGE_STATE_REQUEST = "ChangeStateRq";
176:
177: String CHANGE_STATE_RESPONSE = "ChangeStateRs";
178:
179: String TERMINATE_REQUEST = "TerminateRq";
180:
181: String TERMINATE_RESPONSE = "TerminateRs";
182:
183: String COMPLETE_ACTIVITY_REQUEST = "CompleteActivityRq";
184:
185: String COMPLETE_ACTIVITY_RESPONSE = "CompleteActivityRs";
186:
187: String STATE_CHANGE_REQUEST = "StateChangedRq";
188:
189: String STATE_CHANGE_RESPONSE = "StateChangedRs";
190:
191: String COMPLETED_REQUEST = "CompletedRq";
192:
193: String COMPLETED_RESPONSE = "CompletedRs";
194: }
|