[jboss-svn-commits] JBL Code SVN: r16884 - in labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core: impl and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Nov 27 21:26:47 EST 2007
Author: KrisVerlaenen
Date: 2007-11-27 21:26:47 -0500 (Tue, 27 Nov 2007)
New Revision: 16884
Modified:
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/Constraint.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/impl/ConstraintImpl.java
Log:
JBRULES-1352: Allow Constraints to also use dialectable expression evaluations
- added support for dialects in constraints in IDE
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/Constraint.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/Constraint.java 2007-11-28 02:18:30 UTC (rev 16883)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/Constraint.java 2007-11-28 02:26:47 UTC (rev 16884)
@@ -57,7 +57,7 @@
void setName(String name);
/**
- * Returns the priority of the constriant
+ * Returns the priority of the constraint
*
* @return the priority of the constraint
*/
@@ -70,4 +70,36 @@
*/
void setPriority(int priority);
+ /**
+ * Returns the type of the constraint,
+ * e.g. "eval" or "rule"
+ *
+ * @return the type of the constraint
+ */
+ String getType();
+
+ /**
+ * Method for setting the type of the constraint,
+ * e.g. "eval" or "rule"
+ *
+ * @param type the type of the constraint
+ */
+ void setType(String type);
+
+ /**
+ * Returns the dialect of the constraint,
+ * e.g. "mvel" or "java"
+ *
+ * @return the dialect of the constraint
+ */
+ String getDialect();
+
+ /**
+ * Method for setting the dialect of the constraint,
+ * e.g. "mvel" or "java"
+ *
+ * @param type the dialect of the constraint
+ */
+ void setDialect(String dialect);
+
}
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/impl/ConstraintImpl.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/impl/ConstraintImpl.java 2007-11-28 02:18:30 UTC (rev 16883)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/ruleflow/core/impl/ConstraintImpl.java 2007-11-28 02:26:47 UTC (rev 16884)
@@ -18,6 +18,7 @@
import java.io.Serializable;
+import org.drools.ruleflow.core.Constraint;
import org.drools.ruleflow.nodes.split.ConstraintEvaluator;
import org.drools.ruleflow.nodes.split.RuleFlowConstraintEvaluator;
@@ -28,7 +29,7 @@
*/
public class ConstraintImpl
implements
- org.drools.ruleflow.core.Constraint,
+ Constraint,
Serializable {
private static final long serialVersionUID = 400L;
More information about the jboss-svn-commits
mailing list