Package org.jbpm.workflow.core
Interface Constraint
-
- All Known Subinterfaces:
ConstraintEvaluator
- All Known Implementing Classes:
ConstraintImpl,ReturnValueConstraintEvaluator,RuleConstraintEvaluator
public interface ConstraintRepresents a constraint in a RuleFlow. Can be used to specify conditions in (X)OR-splits.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetConstraint()Typically this method returns the constraint as a StringStringgetDialect()Returns the dialect of the constraint, e.g.ObjectgetMetaData(String name)StringgetName()Returns the name of the constraintintgetPriority()Returns the priority of the constraintStringgetType()Returns the type of the constraint, e.g.booleanisDefault()voidsetConstraint(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)voidsetName(String name)Sets the name of the constraintvoidsetPriority(int priority)Method for setting the priority of the constraintvoidsetType(String type)Method for setting the type of the constraint, e.g.
-
-
-
Method Detail
-
getConstraint
String getConstraint()
Typically this method returns the constraint as a String- Returns:
- the constraint
-
setConstraint
void setConstraint(String constraint)
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
void setName(String name)
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
void setType(String type)
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
void setDialect(String dialect)
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)
-
-