001: /*--
002:
003: Copyright (C) 2002-2005 Adrian Price.
004: All rights reserved.
005:
006: Redistribution and use in source and binary forms, with or without
007: modification, are permitted provided that the following conditions
008: are met:
009:
010: 1. Redistributions of source code must retain the above copyright
011: notice, this list of conditions, and the following disclaimer.
012:
013: 2. Redistributions in binary form must reproduce the above copyright
014: notice, this list of conditions, and the disclaimer that follows
015: these conditions in the documentation and/or other materials
016: provided with the distribution.
017:
018: 3. The names "OBE" and "Open Business Engine" must not be used to
019: endorse or promote products derived from this software without prior
020: written permission. For written permission, please contact
021: adrianprice@sourceforge.net.
022:
023: 4. Products derived from this software may not be called "OBE" or
024: "Open Business Engine", nor may "OBE" or "Open Business Engine"
025: appear in their name, without prior written permission from
026: Adrian Price (adrianprice@users.sourceforge.net).
027:
028: THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
029: WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
030: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
031: DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
032: INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
033: (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
034: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
035: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
036: STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
037: IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
038: POSSIBILITY OF SUCH DAMAGE.
039:
040: For more information on OBE, please see
041: <http://obe.sourceforge.net/>.
042:
043: */
044:
045: package org.obe.client.api.xpdl;
046:
047: /**
048: * Provides error codes for package validator messages.
049: *
050: * @author Adrian Price
051: */
052: public interface PackageValidatorMessages {
053: /**
054: * Message: {0}: Id must be specified.
055: */
056: int ID_MUST_BE_SPECIFIED = 0;
057: /**
058: * Message: {0} is already defined. Remove the duplicate entity or assign it a unique ID.
059: */
060: int ID_ALREADY_DEFINED = 1;
061: /**
062: * Message: {0} references an undefined {1}[{2}].
063: */
064: int UNDEFINED_REFERENCE = 2;
065: /**
066: * Message: {0}: Property {1} must be specified.
067: */
068: int PROPERTY_MISSING = 3;
069: /**
070: * Message: {0}: Property {1} count incorrect: expected <{2}>, actual <{3}>.
071: */
072: int COUNT_INCORRECT = 4;
073: /**
074: * Message: {0}: Property {1} value must be at least <{2}>.
075: */
076: int PROPERTY_VALUE_TOO_LOW = 5;
077: /**
078: * Message: {0}: must have at least one start activity (one with no afferent (inbound) transitions).
079: */
080: int START_ACTIVITY_REQUIRED = 6;
081: /**
082: * Message: {0}: must have at least one exit activity (one with no efferent (outbound) transitions).
083: */
084: int EXIT_ACTIVITY_REQUIRED = 7;
085: /**
086: * Message: {0}: the BlockActivity references an undefined ActivitySet[{1}].
087: */
088: int UNDEFINED_ACTIVITY_SET = 8;
089: /**
090: * Message: Activity[{0}]: the SubFlow references an undefined WorkflowProcess[{1}].
091: */
092: int UNDEFINED_SUBPROCESS = 9;
093: /**
094: * Message: Activity[{0}]: a Route cannot have a Performer.
095: */
096: int ROUTE_CANNOT_HAVE_PERFORMER = 10;
097: /**
098: * Message: Activity[{0}]: must include only one of: Route, Implementation, or BlockActivity.
099: */
100: int ACTIVITY_BODY_MISSING = 11;
101: /**
102: * Message: Activity[{0}]: activities can only contain one synchronous deadline.
103: */
104: int MAX_ONE_SYNC_DEADLINE = 12;
105: /**
106: * Message: Activity[{0}]: is incompatible with Transition[{1}]/ExtendedAttribute[Execution].
107: */
108: int INCOMPATIBLE_TRANSITION = 13;
109: /**
110: * Message: Activity[{0}]: ExceptionName[{1}] is not handled by any efferent (outbound) transition.
111: */
112: int EXCEPTION_NOT_HANDLED = 14;
113: /**
114: * Message: Activity[{0}]: TransitionRestrictions can only contain one Join.
115: */
116: int TRANSITION_RESTRICTIONS_ONLY_ONE_JOIN = 15;
117: /**
118: * Message: Activity[{0}]: TransitionRestrictions can only contain one Split in OBE (XPDL permits more, but does not define the semantics).
119: */
120: int TRANSITION_RESTRICTIONS_ONLY_ONE_SPLIT = 16;
121: /**
122: * Message: Activity[{0}]: a TransitionRef references non-efferent (non-outbound) Transition[{1}].
123: */
124: int INVALID_TRANSITION_REF = 17;
125: /**
126: * Message: Activity[{0}]: the Split does not reference Transition[{1}].
127: */
128: int TRANSITION_REF_MISSING = 18;
129: /**
130: * Message: Activity[{0}]: the Split does not reference any transitions.
131: */
132: int SPLIT_MISSING_REFERENCES = 19;
133: /**
134: * Message: Transition[{0}]: OBE event transitions cannot be used in conjunction with an XPDL transition type {1}.
135: */
136: int EVENT_TRANSITION_MISMATCH = 20;
137: /**
138: * Message: Activity[{0}]: an OTHERWISE transition has already been defined.
139: */
140: int OTHERWISE_ALREADY_DEFINED = 21;
141: /**
142: * Message: Activity[{0}] has {1} afferent (inbound) transitions, and therefore requires a Join.
143: */
144: int JOIN_REQUIRED = 22;
145: /**
146: * Message: Activity[{0}] has {1} regular efferent (outbound) transitions, and therefore requires a Split.
147: */
148: int SPLIT_REQUIRED = 23;
149: /**
150: * Message: Transition [{0}] references an undefined 'from' Activity[{1}].
151: */
152: int TRANSITION_FROM_ACTIVITY_UNDEFINED = 24;
153: /**
154: * Message: Transition [{0}] references an undefined 'to' Activity[{1}].
155: */
156: int TRANSITION_TO_ACTIVITY_UNDEFINED = 25;
157: /**
158: * Message: Unable to determine DataType for ActualParameter[{0}]: {1}
159: */
160: int DATATYPE_NOT_FOUND = 26;
161: /**
162: * Message: Unsupported type conversion: from <${0}> to <${1}>.
163: */
164: int UNSUPPORTED_TYPE_CONVERSION = 27;
165: /**
166: * Message: <{0}> is not a valid XPDL identifier (NMTOKEN).
167: */
168: int INVALID_NMTOKEN = 28;
169: /**
170: * Message: Unsupported codepage: {0}.
171: */
172: int UNSUPPORTED_CODEPAGE = 29;
173: /**
174: * Message: Unsupported country: {0}.
175: */
176: int UNSUPPORTED_COUNTRY = 30;
177: /**
178: * Message: Script[{0}] is not a valid script declaration. Script type is an
179: * extended MIME Media Type and must start with "text/xml/x-" or "text/x-".
180: */
181: int INVALID_SCRIPT = 31;
182: /**
183: * Message: {0} is not a valid type declaration: a type is required.
184: */
185: int INVALID_TYPE_DECL = 32;
186: /**
187: * Message: Invalid ValidFrom/ValidTo specification: {0,date}/{1,date}. \
188: * ValidFrom must pre-date ValidTo.
189: */
190: int INVALID_FROM_TO_DATES = 33;
191: /**
192: * Message: Activity[{0}] is in a FULL_BLOCKED WorkflowProcess and has an XOR-Split,
193: * and therefore requires an OTHERWISE or unconditional transition.
194: */
195: int OTHERWISE_REQUIRED = 34;
196: }
|