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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Find which lifecycle attached to object?

davehaigh
11-Garnet

Find which lifecycle attached to object?

How do you determine which lifecycle an object is using?

David Haigh
Phone: 925-424-3931
Fax: 925-423-7496
Lawrence Livermore National Lab
7000 East Ave, L-362
Livermore, CA 94550

8 REPLIES 8

I have a query builder report that lists what LC template is used by
user-entered Object Number.


I want to know which of several lifecycles was used when the object was created.

If I have two lifecycles:

1. Wish I'd never created this lifecycle

2. Always use this lifecycle

How do I find out which was used on a specific object.

David Haigh
RandyJones
19-Tanzanite
(To:davehaigh)

On 01/15/15 16:13, Haigh, David A. wrote:
>
> How do you determine which lifecycle an object is using?
>

In Windchill 10.2 you can find this on the Details tab in the objects information page.
Look for "Life Cycle Template" in the "System" group of attributes.

> David Haigh
> Phone: 925-424-3931
> Fax: 925-423-7496
> Lawrence Livermore National Lab
> 7000 East Ave, L-362
> Livermore, CA 94550
>
>
> ----------


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

The system I need this information on is 9.1-m070

David Haigh
RandyJones
19-Tanzanite
(To:davehaigh)

On 01/15/15 16:29, Haigh, David A. wrote:
>
> The system I need this information on is 9.1-m070
>

The same information is still there. I don't remember exactly where other than somewhere in the objects information page.

Here is an oracle query (for 10.2 - might work for 9.1...) that will return all the objects with a particular LifeCycle:

column cadname format a30
column state format a15
column rev format a5
column iter format a5
column name format a20
set lines 200
select edm.cadname, ed.versionida2versioninfo rev, ed.iterationida2iterationinfo iter, ed.ida3a2state, ed.statestate state, ltm.name
from epmdocumentmaster edm
join epmdocument ed on ed.ida3masterreference = edm.ida2a2
join lifecycletemplate lt on lt.ida2a2 = ed.ida3a2state
join lifecycletemplatemaster ltm on ltm.ida2a2 = lt.ida3masterreference
where
ed.statecheckoutinfo = 'c/i' and
ed.classnamekeya2state = 'wt.lifecycle.LifeCycleTemplate' and
ltm.name = 'NameOfLifeCycleIWishedWasNeverBorn'
order by
edm.cadname, ed.versionsortida2versioninfo, ed.iterationida2iterationinfo
>
> David Haigh
> Phone: 925-424-3931
> Fax: 925-423-7496
> Lawrence Livermore National Lab
> 7000 East Ave, L-362
> Livermore, CA 94550
>
> *From:*Randy Jones [
>
>
> David Haigh
> Phone: 925-424-3931
> Fax: 925-423-7496
> Lawrence Livermore National Lab
> 7000 East Ave, L-362
> Livermore, CA 94550
>
> -----End Original Message-----
>
>
>
>
> --
> ------------------------------------------------------------------------
> Randy Jones
> Systems Administrator
> Great Plains Mf...



">mailto:->
> Phone: 785-823-3276
> Fax: 785-667-2695
> ------------------------------------------------------------------------
>
> -----End Original Message-----
>
> -----End Original Message-----


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------

Hi David,


in this document there is a lot of link to different query builder.


http://communities.ptc.com/docs/DOC-6348



You can find what you are looking for.


Marco

Marco

David,

We are on Windchill 10.1 now, but I think that this worked on 9.1 as well.

One way to do this is in the folder table, create a custom view and add the lifecycle column to it. Then when you display the table, each object in the current location will show it's lifecycle.

-marc

[cid:image001.png@01D03162.3067A800]

Hi David,


I usually tell my developers to find not the lifecycle template but the lifecycle instance that is attached to the PBO. The transitions, states and ACLs could have changed between iteration to interation.


But if you are looking for a search, it is the lifecycle template to generalize.



thanks,



Patrick



In Reply to David Haigh:


How do you determine which lifecycle an object is using?

David Haigh
Phone: 925-424-3931
Fax: 925-423-7496
Lawrence Livermore National Lab
7000 East Ave, L-362
Livermore, CA 94550

Announcements

Top Tags