Workflow expression to check if asm files are included in a Change Notice
Hello,
anyone could help determining how the workflow expression should be composed to get a conditional when a CN includes asm files in the affected objects.
Thank you.
Hello,
anyone could help determining how the workflow expression should be composed to get a conditional when a CN includes asm files in the affected objects.
Thank you.
You’re very close. You need to change “ASSEMBLY” to “CADASSEMBLY”.
wt.fc.QueryResult affectedObjects = wt.change2.ChangeHelper2.service.getChangeablesBefore((wt.change2.WTChangeOrder2)primaryBusinessObject);
while(affectedObjects.hasMoreElements()) {
wt.change2.Changeable2 chgable = (wt.change2.Changeable2)affectedObjects.nextElement();
if(chgable instanceof wt.epm.EPMDocument && ((wt.epm.EPMDocument)chgable).getDocType().toString().equals("CADASSEMBLY")) {
hasAssembly = true;
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.