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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Can Attribute "PTC_WM_LIFECYCLE_STATE" be used for publish rules?

alonkar-2
1-Newbie

Can Attribute "PTC_WM_LIFECYCLE_STATE" be used for publish rules?

Hi,

Our requirement is to generate the EPMdocuments once the drawing is published through post-publication using publish rule.
Particularly, it should post-publish only the drawings which are having PTC_WM_LIFECYCLE_STATE=Released.
However, when created a PublishRule.xml with below lines it does not work. Drawing withPTC_WM_LIFECYCLE_STATE=Released are not getting post-published.
It does not consider value for parameter:PTC_WM_LIFECYCLE_STATE and post-publication does not happen.



<rules xmlns="&lt;/span">http://www.ptc.com"


       xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="
http://www.ptc.com
PublishRulesSchema.xsd">


 <authoring-application name="PROE">

<epm-iba iba="PTC_WM_LIFECYCLE_STATE" value="Released">
<publish on="checkin" param-set="Post" publish&quot;="/>
<publish on="create-representation" param-set="Post" publish&quot;="/>
<publish on="schedule" param-set="Post" publish&quot;="/>
</epm-iba>


  
<param-set name="Post" publish&quot;=">
<post-publish name="delegate">com.ptc.wvs.server.publish.EPMPostPublishDelegate&l
t;/post-publish>
<post-publish name="type">wt.doc.Document</post-publish>
<post-publish name="name">{EPM_NAME}_temp</post-publish>
<post-publish name="number">{EPM_NUMBER}_temp</post-publish>
<post-publish name="published-content-link">create</post-publish>
<post-publish name="container-oid">wt.pdmlink.PDMLinkProduct:79086986</post/> -publish>

</param-set>


 
</authoring-application>


</rules>



This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4

Hi Lance,

The syntax is not the issue. Sorry it was a typo while pasting here. It is written correctly in xml file on server.

However, problem is with "<epm-iba iba="PTC_WM_LIFECYCLE_STATE" value="Released">"

Our requirement is that post publish should happen only with the drawings which are having a life cycle state as "Released". And it will create EPMDocument after post-publish.
So we are trying to use the parameter "PTC_WM_LIFECYCLE_STATE" to verify this condition of "Released" state.
However, with this parameter used as a check for post-publish it is not working.


Best Regards,
~Amit Lonkar
RandyJones
19-Tanzanite
(To:alonkar-2)

On 08/13/13 11:35, amit lonkar wrote:
>
> Hi Lance,
>
> The syntax is not the issue. Sorry it was a typo while pasting here. It is written correctly in xml file on server.
>
> However, problem is with "<epm-iba iba="PTC_WM_LIFECYCLE_STATE" value="Released">"
>

The value you should compare against is uppercase "RELEASED".
Lifecycle states are all upper case and no spaces for the values used in the software.
ie: "In Work" display value is actually "INWORK" internal value.

> Our requirement is that post publish should happen only with the drawings which are having a life cycle state as "Released". And it will create EPMDocument after post-publish.
>
> So we are trying to use the parameter "PTC_WM_LIFECYCLE_STATE" to verify this condition of "Released" state.
>
> However, with this parameter used as a check for post-publish it is not working.
>
> Best Regards,
>
> ~Amit Lonkar
>
> *From:*Lance J Lie [
>
> Amit,
>
> Is syntax the issue? I highlighted it in red. The string </post-publish> isn't closed.
>
> <authoring-application name="PROE">
>
> <epm-iba iba="PTC_WM_LIFECYCLE_STATE" value="Released">
> <publish on="checkin" param-set="Post" publish&quot;="/>
> <publish on="create-representation" param-set="...
























">mailto:->
>
> 2000 E. El Segundo Blvd.
> El Segundo, CA 90245 USA_
> _www.raytheon.com
> To: - <
">mailto:->
> Date: 08/13/2013 01:31 AM
> Subject: [viz] - Can Attribute "PTC_WM_LIFECYCLE_STATE" for publish rules?
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
>
> Hi,
>
> Our requirement is to generate the EPMdocuments once the drawing is published through post-publication using publish rule.
> Particularly, it should post-publish only the drawings which are having PTC_WM_LIFECYCLE_STATE=Released.
> However, when created a PublishRule.xml with below lines it does not work. Drawing with PTC_WM_LIFECYCLE_STATE=Released are not getting post-published.
> It does not consider value for parameterSmiley TongueTC_WM_LIFECYCLE_STATE and post-publication does not happen.
>
>
>
> <rules xmlns="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="http://www.ptc.com"">http://www.ptc.com"
>
<">http://www.w3.org/2001/XMLSchema-instance%22>
>
> xsi:schemaLocation="
>
>
> <authoring-application name="PROE">
>
> <epm-iba iba="PTC_WM_LIFECYCLE_STATE" value="Released">
> <publish on="checkin" param-set="Post" publish&quot;="/>
> <publish on="create-representation" param-set="Post" publish&quot;="/>
> <publish on="schedule" param-set="Post" publish&quot;="/>
> </epm-iba>
>
>
>...
































Hi Randy,

Changing the Value to Uppercase did not work.

It does not work even if I don't put the value for parameter like: <epm-iba iba="PTC_WM_LIFECYCLE_STATE">

I think it does not recognize the parameter 'PTC_WM_LIFECYCLE_STATE' itself.

Any idea how to make it work?

Best Regards,
~Amit Lonkar
TomU
23-Emerald IV
(To:alonkar-2)

I could be completely off base here....

I don't think the publisher is anything more than a toolkit app. Also, aren't the files transferred from Windchill to the publisher via ftp or network folders? I am wondering if Pro/e is actually connected to Windchill during the publishing. The PTC_WM_LIFECYCLE_STATE parameter is only visible when you open a part while connected to Windchill. If you directly download a part out of Windchill (download as in downloading a file from a website) and then open it in Pro/e, you will notice that there are multiple parameters no longer listed that ARE listed when the same part is opened in a linked session. Here are the ones I'm seeing on our system:

PTC_ORGANIZATION_ID
PTC_WM_REVISION
PTC_WM_ITERATION
PTC_WM_VERSION
PTC_WM_LIFECYCLE_STATE
PTC_WM_LIFECYCLE
PTC_WM_LOCATION
PTC_WM_CREATED_BY
PTC_WM_CREATED_ON
PTC_WM_MODIFIED_BY
PTC_WM_MODIFIED_ON
PTC_WM_TEAM
DOC_CNTL_STATUS

NONE of these are visible in Pro/e unless the file is opened from Windchill directly.

Tom U.
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags