Skip to main content
1-Visitor
Feb 7, 2019 11:47 AM UTC
Question

Windchill Business Rules Issues

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
Jul 23, 2019 4:58 PM UTC

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};
}
Translate