Skip to main content
3-Newcomer
February 15, 2024
Solved

contradictory conditions in publish rules

  • February 15, 2024
  • 1 reply
  • 2108 views

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.8

Is it possible to have contradictory conditions in publish rules.
We want to have a condtion in the publish where content (STEP/PDF) only is published when attribute MODEL_TYPE is empty. If this value is not empy it should not publish any content only the pvz.

Best answer by HelesicPetr

Hi @Hans_TS 

But you use regex definition in the value definition.

Iam sure that it can not work. 

 

use <or> definition for each value or use regex= parameter instead of value= 

 

PetrH

1 reply

Hans_TS3-NewcomerAuthor
3-Newcomer
February 15, 2024

We already tried the following:

<condition name="3DPRT_released">
<and>
<attribute name="epmdoc_docType" value="CAD Part" />
<attribute name="epmdoc_MODEL_TYPE" regex=")$" />
<or>
<attribute name="epmdoc_lifeCycleState" value="Design Review" />
<attribute name="epmdoc_lifeCycleState" value="Design Approved" />
<attribute name="epmdoc_lifeCycleState" value="Design Manual Approved" />
<attribute name="epmdoc_lifeCycleState" value="Prototype" />
<attribute name="epmdoc_lifeCycleState" value="Production" />
<attribute name="epmdoc_lifeCycleState" value="Obsolete" />
</or>
</and>
</condition>

 

Publish rule has no error but when attribute MODEL_TYPE is empty is not publishing any content

HelesicPetr
22-Sapphire II
22-Sapphire II
February 15, 2024

Hi @Hans_TS 

Empty? so try value="" 

PetrH

Hans_TS3-NewcomerAuthor
3-Newcomer
February 15, 2024

Hi,

Thank you for your response.

We already tried that but this is not working.

This is resulting in an error during replacing the publish_rules.xml.

H.smits