Skip to main content
1-Visitor
February 7, 2019
Question

Windchill Business Rules Issues

  • February 7, 2019
  • 1 reply
  • 1716 views

Hi Team,

 

we are facing issues with Business Rules Execution.

we are using WC 11.1 M010.

 

  • we have added new custom business rule under ORG which checks if child parts are in desire state or not While releasing the BOM via promotion request wrokflow.
  • We have added the state check logic in “prepareForValidation” method
  • And returning the validation status in “RuleValidationResult” from “performValidation” (Success, failure)

While execution Only prepareForValidation() is getting executed not the performValidation() method as we can see SOP in MS logs, hence empty validationResult, code doesnt show any errors even after we have enabled the logs trace levels.

 

is there any steps that i am missing while calling the business rule?

any suggestions why this issue is occurring ?

1 reply

12-Amethyst
July 23, 2019

Do you have the object type you're trying to validate in the list of supported classes?

 

Example for WTDocument.class

@Override
public Class[] getSupportedClasses(RuleValidationKey rVKey) 
{
return new Class[] {WTDocument.class};
}