01: package org.drools.ruleflow.core;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * Represents a RuleFlow validation error.
21: *
22: * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
23: */
24: public interface RuleFlowProcessValidationError {
25:
26: String NO_PROCESS_NAME = "RuleFlow process has no name.";
27: String NO_PROCESS_ID = "RuleFlow process has no id.";
28: String NO_START_NODE = "RuleFlow process has no start node.";
29: String START_NODE_WITHOUT_OUTGOING_NODES = "Start node has no outgoing connection.";
30: String END_NODE_HAS_NO_INCOMING_CONNECTIONS = "End node has no incoming connection.";
31: String NO_END_NODE = "No end node found.";
32: String RULE_SET_NODE_WITHOUT_INCOMING_CONNECTIONS = "RuleSet node has no incoming connection.";
33: String RULE_SET_NODE_WITHOUT_OUTGOING_CONNECTIONS = "RuleSet node has no outgoing connection.";
34: String RULE_SET_NODE_WITHOUT_RULE_SET_GROUP = "RuleSet node has no ruleflow-group specified.";
35: String SPLIT_WITHOUT_TYPE = "Split node has no type.";
36: String SPLIT_WITHOUT_INCOMING_CONNECTION = "Split node has no incoming connection.";
37: String SPLIT_NOT_ENOUGH_OUTGOING_CONNECTIONS = "Split node does not have enough outgoing connections.";
38: String SPLIT_OUTGOING_CONNECTION_WITHOUT_CONSTRAINT = "An outgoing connection of a split node has no constraint.";
39: String JOIN_WITHOUT_TYPE = "Join node has no type.";
40: String JOIN_NOT_ENOUGH_INCOMING_CONNECTIONS = "Join node does not have enough incoming connections.";
41: String JOIN_WITHOUT_OUTGOING_CONNECTION = "Join node has no outgoing connection.";
42: String VARIABLE_WITHOUT_TYPE = "A variable has no type.";
43: String ALL_NODES_CONNECTED_TO_START = "A node is not connected to the start node.";
44: String MILESTONE_NODE_WITHOUT_INCOMING_CONNECTIONS = "Milestone node has no incoming connection.";
45: String MILESTONE_NODE_WITHOUT_OUTGOING_CONNECTIONS = "Milestone node has no outgoing connection.";
46: String MILESTONE_WITHOUT_CONSTRAINT = "A milestone node has no constraint.";
47: String SUBFLOW_NODE_WITHOUT_INCOMING_CONNECTIONS = "SubFlow node has no incoming connection.";
48: String SUBFLOW_NODE_WITHOUT_OUTGOING_CONNECTIONS = "SubFlow node has no outgoing connection.";
49: String SUBFLOW_WITHOUT_PROCESS_ID = "A SubFlow node has no process id.";
50: String ACTION_NODE_WITHOUT_INCOMING_CONNECTIONS = "Action node has no incoming connection.";
51: String ACTION_NODE_WITHOUT_OUTGOING_CONNECTIONS = "Action node has no outgoing connection.";
52: String ACTION_NODE_WITHOUT_ACTION = "An Action node has no action.";
53:
54: String getType();
55: }
|