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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. 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
Top Tags