Solved
How to check the type of WTObject and run an expression
I wrote the following code in the expression but it does not run
wt.fc.QueryResult qr= wt.maturity.MaturityHelper.service.getPromotionTargets(pn);
while (qr.hasMoreElements())
{
if(qr.type.equals("EPMDocument")
{
wt.lifecycle.LifeCycleManaged lifeCycleManaged = (wt.lifecycle.LifeCycleManaged) qr.nextElement();
wt.lifecycle.LifeCycleServerHelper.service.setState(lifeCycleManaged, wt.lifecycle.State.toState("DESIGNCHANGE"));
}
}
I want to check the type of the object and change the lifecycle state only if it is an EPMDocument
Can you help me please?



