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:
  • Constructor Details

    • ReturnValueConstraintEvaluator

      public ReturnValueConstraintEvaluator()
  • Method Details

    • getConstraint

      public String getConstraint()
      Description copied from interface: Constraint
      Typically this method returns the constraint as a String
      Specified by:
      getConstraint in interface Constraint
      Returns:
      the constraint
    • setConstraint

      public void setConstraint(String constraint)
      Description copied from interface: Constraint
      Method for setting the constraint
      Specified by:
      setConstraint in interface Constraint
      Parameters:
      constraint - the constraint
    • getName

      public String getName()
      Description copied from interface: Constraint
      Returns the name of the constraint
      Specified by:
      getName in interface Constraint
      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 interface Constraint
      Parameters:
      name - the name of the constraint
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPriority

      public int getPriority()
      Description copied from interface: Constraint
      Returns the priority of the constraint
      Specified by:
      getPriority in interface Constraint
      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 interface Constraint
      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 interface Constraint
      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 interface Constraint
      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 interface Constraint
      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 interface Constraint
      Parameters:
      type - the type of the constraint
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface Constraint
    • setDefault

      public void setDefault(boolean isDefault)
      Specified by:
      setDefault in interface Constraint
    • wire

      public void wire(Object object)
      Specified by:
      wire in interface org.drools.base.rule.accessor.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 interface ConstraintEvaluator
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • setMetaData

      public void setMetaData(String name, Object value)
      Specified by:
      setMetaData in interface Constraint
    • getMetaData

      public Object getMetaData(String name)
      Specified by:
      getMetaData in interface Constraint