Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
How can I use the updateWithLatestIterations function in Promotion in ECN?
Code:
wt.change2.WTChangeActivity2 ct = (wt.change2.WTChangeActivity2) primaryBusinessObject;
wt.fc.QueryResult helper = wt.change2.ChangeHelper2.service.getChangeablesAfter(ct, false);
try {
helper.updateWithLatestIterations(ct);
} catch (Exception wte) {
wte.printStackTrace();
}
Error:
WfExpression_11.java:170: error: cannot find symbol
helper.updateWithLatestIterations(ct);
^
symbol: method updateWithLatestIterations(WTChangeActivity2)
Hi @smcvr
Helper is query result, you can not use the updateWithLatestIterations
you think that you work with helper but it is not helper.
you need something like this>
QueryResult helper = VersionControlHelper.service.allVersionsOf(document);
while (helper.hasMoreElements())
{
Object obj = helper.nextElement();
if (obj instanceof RevisionControlled)
{
RevisionControlled iterationObject = (RevisionControlled) obj;
// here work with yours objects as you need.
}}
PetrH