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

How to get the iteration history by Java code

SOLVED
Highlighted
Regular Member

How to get the iteration history by Java code

Hi,

I like to know what was the status of the previous iteration of a EPMDocument via Java code. Can someone shed a light on this please ?

Regards, Bernard

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to get the iteration history by Java code

something like following will work

for example -

QueryResult epmDocQueryResult = VersionControlHelper.service.allIterationsFrom((Iterated) myEPMDocument);

while(epmDocQueryResult.hasMoreElements()){

            final EPMDocument epmDoc = (EPMDocument) epmDocQueryResult.nextElement();

            final String epmDocumentState = epmDoc.getState().toString();

}

2 REPLIES 2

Re: How to get the iteration history by Java code

something like following will work

for example -

QueryResult epmDocQueryResult = VersionControlHelper.service.allIterationsFrom((Iterated) myEPMDocument);

while(epmDocQueryResult.hasMoreElements()){

            final EPMDocument epmDoc = (EPMDocument) epmDocQueryResult.nextElement();

            final String epmDocumentState = epmDoc.getState().toString();

}

Re: How to get the iteration history by Java code

thanx

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group