Package org.jbpm.process.instance.impl
Class ReturnValueConstraintEvaluator
- java.lang.Object
-
- org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.drools.core.spi.Wireable
,ConstraintEvaluator
,Constraint
public class ReturnValueConstraintEvaluator extends Object implements Constraint, ConstraintEvaluator, org.drools.core.spi.Wireable, Externalizable
Default implementation of a constraint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReturnValueConstraintEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(NodeInstance instance, org.kie.api.definition.process.Connection connection, Constraint constraint)
String
getConstraint()
Typically this method returns the constraint as a StringString
getDialect()
Returns the dialect of the constraint, e.g.Object
getMetaData(String name)
String
getName()
Returns the name of the constraintint
getPriority()
Returns the priority of the constraintReturnValueEvaluator
getReturnValueEvaluator()
String
getType()
Returns the type of the constraint, e.g.boolean
isDefault()
void
readExternal(ObjectInput in)
void
setConstraint(String constraint)
Method for setting the constraintvoid
setDefault(boolean isDefault)
void
setDialect(String dialect)
Method for setting the dialect of the constraint, e.g.void
setEvaluator(ReturnValueEvaluator evaluator)
void
setMetaData(String name, Object value)
void
setName(String name)
Sets the name of the constraintvoid
setPriority(int priority)
Method for setting the priority of the constraintvoid
setType(String type)
Method for setting the type of the constraint, e.g.String
toString()
void
wire(Object object)
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
getConstraint
public String getConstraint()
Description copied from interface:Constraint
Typically this method returns the constraint as a String- Specified by:
getConstraint
in interfaceConstraint
- Returns:
- the constraint
-
setConstraint
public void setConstraint(String constraint)
Description copied from interface:Constraint
Method for setting the constraint- Specified by:
setConstraint
in interfaceConstraint
- Parameters:
constraint
- the constraint
-
getName
public String getName()
Description copied from interface:Constraint
Returns the name of the constraint- Specified by:
getName
in interfaceConstraint
- Returns:
- the name of the constraint
-
setName
public void setName(String name)
Description copied from interface:Constraint
Sets the name of the constraint- Specified by:
setName
in interfaceConstraint
- Parameters:
name
- the name of the constraint
-
getPriority
public int getPriority()
Description copied from interface:Constraint
Returns the priority of the constraint- Specified by:
getPriority
in interfaceConstraint
- Returns:
- the priority of the constraint
-
setPriority
public void setPriority(int priority)
Description copied from interface:Constraint
Method for setting the priority of the constraint- Specified by:
setPriority
in interfaceConstraint
- Parameters:
priority
- the priority of the constraint
-
getDialect
public String getDialect()
Description copied from interface:Constraint
Returns the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
getDialect
in interfaceConstraint
- Returns:
- the dialect of the constraint
-
setDialect
public void setDialect(String dialect)
Description copied from interface:Constraint
Method for setting the dialect of the constraint, e.g. "mvel" or "java"- Specified by:
setDialect
in interfaceConstraint
- Parameters:
dialect
- the dialect of the constraint
-
getType
public String getType()
Description copied from interface:Constraint
Returns the type of the constraint, e.g. "code" or "rule"- Specified by:
getType
in interfaceConstraint
- Returns:
- the type of the constraint
-
setType
public void setType(String type)
Description copied from interface:Constraint
Method for setting the type of the constraint, e.g. "code" or "rule"- Specified by:
setType
in interfaceConstraint
- Parameters:
type
- the type of the constraint
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceConstraint
-
setDefault
public void setDefault(boolean isDefault)
- Specified by:
setDefault
in interfaceConstraint
-
wire
public void wire(Object object)
- Specified by:
wire
in interfaceorg.drools.core.spi.Wireable
-
setEvaluator
public void setEvaluator(ReturnValueEvaluator evaluator)
-
getReturnValueEvaluator
public ReturnValueEvaluator getReturnValueEvaluator()
-
evaluate
public boolean evaluate(NodeInstance instance, org.kie.api.definition.process.Connection connection, Constraint constraint)
- Specified by:
evaluate
in interfaceConstraintEvaluator
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
setMetaData
public void setMetaData(String name, Object value)
- Specified by:
setMetaData
in interfaceConstraint
-
getMetaData
public Object getMetaData(String name)
- Specified by:
getMetaData
in interfaceConstraint
-
-