java.lang.Object
com.ptc.qualitymanagement.qms.businessrules.RuleUtil

public class RuleUtil extends Object
Methods to help workflow designers interact with QMS and Native Business Rules.

Supported API: true

Extendable: false
  • Method Details

    • convertRuleValidationResultSetToFormResult

      public static FormResult convertRuleValidationResultSetToFormResult(RuleValidationResultSet resultSet) throws WTException
      Convert a native RuleValidationRuleSet into a JCA FormReslt

      Supported API: true
      Parameters:
      resultSet - the native business rule result set
      Returns:
      the form result
      Throws:
      WTException
    • convertFormResultToRuleValidationResult

      public static RuleValidationResult convertFormResultToRuleValidationResult(RuleValidationKey validationKey, Object validationObject, FormResult formResult) throws WTException
      Convert a JCA FormResult into a native RuleValidationResult

      Supported API: true
      Parameters:
      validationKey - the validation key
      validationObject - the validation object
      formResult - the form result
      Returns:
      Throws:
      WTException
    • convertFormResultToRuleValidationResultSet

      public static RuleValidationResultSet convertFormResultToRuleValidationResultSet(RuleValidationKey validationKey, Object validationObject, FormResult formResult) throws WTException
      Convert a JCA FormResult into a native RuleValidationResultSet

      Supported API: true
      Parameters:
      validationKey - the validation key
      validationObject - the validation object
      formResult - the form result
      Returns:
      Throws:
      WTException