Class GetDiscreteSetConstraint

java.lang.Object
com.ptc.core.rule.server.impl.GetDiscreteSetConstraint
All Implemented Interfaces:
RuleAlgorithm

public final class GetDiscreteSetConstraint extends Object implements RuleAlgorithm
Input Parameter of the algorithm: The set value of "DiscreteSet" will be passed into the algorithm through the input parameter. The LifeCycleTemplate and TeamTemplate related information could be gotten through the corresponding helper classes, instead of through the input parameters. Examples could be: TeamHelper.service.findCandidateTeamTemplates(); LifeCycleHelper.service.findCandidateTemplates(...); Return value of the algorithm: The RuleConstraintWrapper object that the string value contains DISCRETE_SET_CONSTRAINT and Serializable set to the corresponding DiscreteSet object.

Supported API: true
  • Method Details

    • calculate

      public Object calculate(Object[] args, WTContainerRef container) throws WTException
      Execute the algorithm using the specified arguments. Return the result.

      Supported API: true
      Specified by:
      calculate in interface RuleAlgorithm
      Parameters:
      args - the arguments for the algorithm
      container - the container to use for object lookups
      Returns:
      Object
      Throws:
      WTException