Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
We are looking to implement automatic post publishing of additional files (PDF of a DRW and STP of the PRT) at release to a wtDocument (or a subtype).
Are anyone of you doing so and setting the state of the document automatically? we have "unknown-source" set so that when a promotion request is approved, or a change notice is approved, or the CAII does a "Set State" that it kicks off republishing and then post-publishing.
The issue we are running into now is that if a regular user submits the promotion request, post publishing fails because it uses the submitter of the promotion request to authorize the post publishing. Since regular users shouldn't have create, modify, modify content on released documents, that user doesn't have the permission.
Has anyone ran into this / got around it?
So upon further review... It seems that Windchill is using two different methods for creating viewables on state change.
With the change notice, it sees wcadmin / site admin account as the person creating the viewable... no matter who initiated, approved, or audited the change notice
With a promotion request, it sees the person who created the promotion as the person creating the viewable... no matter who approved the promotion.
These seem to be independent of whoever is listed in the auth.properties file.
WC 11 M030 CPS04
As a workaround, I turned off publishing on state change, and inserted a republish expression in workflows that produce a state change (Promotion Request, Change Notice).
This isn't ideal, but it works.