cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Windchill Business Rules Issues

Visitor

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 1

Re: Windchill Business Rules Issues

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