Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi,
can you help me with custom class for Publish Scheduler Administrator?
I'm trying to send current Under Review objects to republish.
But I wrote bad select (qs.appendWhere). It returns nothing.
import wt.epm.EPMDocument;
import wt.query.*;
import wt.fc.QueryResult;
import wt.fc.PersistenceHelper;
import wt.lifecycle.State;
public class PublishJob {
public static QueryResult republishEPMUnderReview () throws Exception {
QuerySpec qs = new QuerySpec(EPMDocument.class);
QueryResult qr = null;
if (qs != null) {
qs.setAdvancedQueryEnabled(true);
qs.appendWhere(new SearchCondition(EPMDocument.class, State.UNDERREVIEW, SearchCondition.EQUAL, "true"), new int[] {0});
}
qr = PersistenceHelper.manager.find(qs);
return qr;
}
}