Windchill Business Rules Issues
Feb 07, 2019
06:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 07, 2019
06:47 AM
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 ?
Labels:
- Labels:
-
Other
1 REPLY 1
Jul 23, 2019
12:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 23, 2019
12:58 PM
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}; }
