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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

Circular dependencies

Johan_Larsson
3-Newcomer

Circular dependencies

Can there be circular dependencies among rules in Windchill or Creo.

Example: If rule R0: if A>5 THEN B=4 and rule R1: if B<5 THEN A=4 is an example of circular dependency. It implies that it can be hard to evaluate the order in which rules should be executed and, also, that we may have oscillating values and rule execution that never ends. 

The rules in Windchill are not SQL Procedures, but stored in SQL tables and exportable to various formats, for example, XML. For example:

JL_12400066_0-1746683224684.jpeg

 

To define your own rules, you apparently have to write such beasts yourself and then load them using.

 

An example of the subpart to constrain an attribute is:

JL_12400066_1-1746683295410.jpeg

 

 

Where com.ptc.Waiver must be in the range 10..100.

 

We are trying to get a grip on how circular dependencies are, or are not, allowed nd managed when working with rules and constraints in WC and Creo.

ACCEPTED SOLUTION

Accepted Solutions

The term circular dependencies is well know to Creo users but means something completely different. Also in Windchill BOMs, circular means you have an assembly that somewhere in its structure, appears itself. Windchill can detect that on a multi-level BOM report but this question is not those topics. If you've looked inside of Windchill knowledge base, I am sure you've not found something addressing your question. https://support.ptc.com/help/windchill/r13.1.0.0/en/index.html#page/Windchill_Help_Center/businessrules/BusRules.html#

I suggest that you test using your simple example and see but as far as I know, I do not think that business rules can alter values. They just report violations. If you have two rules like you suggested, one would always fail when the other passed. Business rules appear to be just for validation of input. I think it would be up to you to design you rules to not have logical flaws. I doubt that Windchill would be checking that for you.

View solution in original post

2 REPLIES 2

The term circular dependencies is well know to Creo users but means something completely different. Also in Windchill BOMs, circular means you have an assembly that somewhere in its structure, appears itself. Windchill can detect that on a multi-level BOM report but this question is not those topics. If you've looked inside of Windchill knowledge base, I am sure you've not found something addressing your question. https://support.ptc.com/help/windchill/r13.1.0.0/en/index.html#page/Windchill_Help_Center/businessrules/BusRules.html#

I suggest that you test using your simple example and see but as far as I know, I do not think that business rules can alter values. They just report violations. If you have two rules like you suggested, one would always fail when the other passed. Business rules appear to be just for validation of input. I think it would be up to you to design you rules to not have logical flaws. I doubt that Windchill would be checking that for you.

Hello @Johan_Larsson 

 

It looks like you have a response from our community champion. If it helped you solve your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements

Top Tags