Package org.jbpm.workflow.core
Interface Constraint
- All Known Subinterfaces:
ConstraintEvaluator
- All Known Implementing Classes:
ConstraintImpl,ReturnValueConstraintEvaluator,RuleConstraintEvaluator
public interface Constraint
Represents a constraint in a RuleFlow.
Can be used to specify conditions in (X)OR-splits.
-
Method Summary
Modifier and TypeMethodDescriptionTypically this method returns the constraint as a StringReturns the dialect of the constraint, e.g.getMetaData(String name) getName()Returns the name of the constraintintReturns the priority of the constraintgetType()Returns the type of the constraint, e.g.booleanvoidsetConstraint(String constraint) Method for setting the constraintvoidsetDefault(boolean isDefault) voidsetDialect(String dialect) Method for setting the dialect of the constraint, e.g.voidsetMetaData(String name, Object value) voidSets the name of the constraintvoidsetPriority(int priority) Method for setting the priority of the constraintvoidMethod for setting the type of the constraint, e.g.
-
Method Details
-
getConstraint
String getConstraint()Typically this method returns the constraint as a String- Returns:
- the constraint
-
setConstraint
Method for setting the constraint- Parameters:
constraint- the constraint
-
getName
String getName()Returns the name of the constraint- Returns:
- the name of the constraint
-
setName
Sets the name of the constraint- Parameters:
name- the name of the constraint
-
getPriority
int getPriority()Returns the priority of the constraint- Returns:
- the priority of the constraint
-
setPriority
void setPriority(int priority) Method for setting the priority of the constraint- Parameters:
priority- the priority of the constraint
-
getType
String getType()Returns the type of the constraint, e.g. "code" or "rule"- Returns:
- the type of the constraint
-
setType
Method for setting the type of the constraint, e.g. "code" or "rule"- Parameters:
type- the type of the constraint
-
getDialect
String getDialect()Returns the dialect of the constraint, e.g. "mvel" or "java"- Returns:
- the dialect of the constraint
-
setDialect
Method for setting the dialect of the constraint, e.g. "mvel" or "java"- Parameters:
dialect- the dialect of the constraint
-
isDefault
boolean isDefault() -
setDefault
void setDefault(boolean isDefault) -
setMetaData
-
getMetaData
-