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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Republish of current Under Review objects

Stanley
1-Newbie

Republish of current Under Review objects

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;

}

}

0 REPLIES 0
Announcements


Top Tags