Package org.jbpm.process.instance.impl
Class ReturnValueConstraintEvaluator
java.lang.Object
org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator
- All Implemented Interfaces:
Externalizable,Serializable,org.drools.base.rule.accessor.Wireable,ConstraintEvaluator,Constraint
public class ReturnValueConstraintEvaluator
extends Object
implements Constraint, ConstraintEvaluator, org.drools.base.rule.accessor.Wireable, Externalizable
Default implementation of a constraint.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.base.rule.accessor.Wireable
org.drools.base.rule.accessor.Wireable.Immutable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(NodeInstance instance, org.kie.api.definition.process.Connection connection, Constraint constraint) Typically 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.booleanvoidvoidsetConstraint(String constraint) Method for setting the constraintvoidsetDefault(boolean isDefault) voidsetDialect(String dialect) Method for setting the dialect of the constraint, e.g.voidsetEvaluator(ReturnValueEvaluator evaluator) 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.toString()voidvoid
-
Constructor Details
-
ReturnValueConstraintEvaluator
public ReturnValueConstraintEvaluator()
-
-
Method Details
-
getConstraint
Description copied from interface:ConstraintTypically this method returns the constraint as a String- Specified by:
getConstraintin interfaceConstraint- Returns:
- the constraint
-
setConstraint
Description copied from interface:ConstraintMethod for setting the constraint- Specified by:
setConstraintin interfaceConstraint- Parameters:
constraint- the constraint
-
getName
Description copied from interface:ConstraintReturns the name of the constraint- Specified by:
getNamein interfaceConstraint- Returns:
- the name of the constraint
-
setName
Description copied from interface:ConstraintSets the name of the constraint- Specified by:
setNamein interfaceConstraint- Parameters:
name- the name of the constraint
-
toString
-
getPriority
public int getPriority()Description copied from interface:ConstraintReturns the priority of the constraint- Specified by:
getPriorityin interfaceConstraint- Returns:
- the priority of the constraint
-
setPriority
public void setPriority(int priority) Description copied from interface:ConstraintMethod for setting the priority of the constraint- Specified by:
setPriorityin interfaceConstraint- Parameters:
priority- the priority of the constraint
-
getDialect
Description copied from interface:ConstraintReturns the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
getDialectin interfaceConstraint- Returns:
- the dialect of the constraint
-
setDialect
Description copied from interface:ConstraintMethod for setting the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
setDialectin interfaceConstraint- Parameters:
dialect- the dialect of the constraint
-
getType
Description copied from interface:ConstraintReturns the type of the constraint, e.g. "code" or "rule"- Specified by:
getTypein interfaceConstraint- Returns:
- the type of the constraint
-
setType
Description copied from interface:ConstraintMethod for setting the type of the constraint, e.g. "code" or "rule"- Specified by:
setTypein interfaceConstraint- Parameters:
type- the type of the constraint
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceConstraint
-
setDefault
public void setDefault(boolean isDefault) - Specified by:
setDefaultin interfaceConstraint
-
wire
- Specified by:
wirein interfaceorg.drools.base.rule.accessor.Wireable
-
setEvaluator
-
getReturnValueEvaluator
-
evaluate
public boolean evaluate(NodeInstance instance, org.kie.api.definition.process.Connection connection, Constraint constraint) - Specified by:
evaluatein interfaceConstraintEvaluator
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
setMetaData
- Specified by:
setMetaDatain interfaceConstraint
-
getMetaData
- Specified by:
getMetaDatain interfaceConstraint
-