Skip to main content
14-Alexandrite
December 10, 2021
Solved

is it possible to not re-publish when doing a move action?

  • December 10, 2021
  • 2 replies
  • 1540 views

Hello everybody

I would like to avoid to republish all iterations of all moved articles.

If I do a move from one context to another one, the cad worker re-publish again all viewables of all items and on every iterations.

Apparently Windchill uses the rule publish on=unknown-source but I want to use this rule if I do a set state but not when I move items (whatever the state)

Any ideas?

thanks Veronique

Best answer by ScottMorris

if you do not republish, the representations will all have the wrong location meta-data on them once they are moved, but I could see the need to move first and publish later. you can find more details in this PTC TS Article - https://www.ptc.com/en/support/article/CS74977

2 replies

17-Peridot
December 10, 2021

if you do not republish, the representations will all have the wrong location meta-data on them once they are moved, but I could see the need to move first and publish later. you can find more details in this PTC TS Article - https://www.ptc.com/en/support/article/CS74977

18-Opal
December 12, 2021

Veronique,

 

Yes, this is preventable.

Move history is stored in the dB and there's a wvs.properties option, publish.service.filterpublishmethod.

These two could work together to determine if an object should be published on move or not.

 

As @ScottMorris there is the wrong location metadata issue but what could be addressed by either publishing only the latest rev's iteration on move or the latest iteration only of all revs on move.  I think this would be a pretty slick way to get the behavior you're looking for.

 

I've done stuff like this before.  Never with the move history but after seeing this post I did look at what it would take to write the code to prevent publishing on move and it's very doable including the part about publish only the latest iterations. The logic seems bombproof.

 

David