Skip to main content
1-Visitor
January 6, 2016
Solved

How to get the iteration history by Java code

  • January 6, 2016
  • 1 reply
  • 1682 views

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

Best answer by ybagul

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();

}

1 reply

ybagul1-VisitorAnswer
1-Visitor
January 6, 2016

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();

}

1-Visitor
January 6, 2016

thanx