How to get associate Workflow process from primaryBusinessObject in Windchill

How to get associate Workflow process from primaryBusinessObject in Windchill

Alex Trainee Asked on May 15, 2015 in Windchill PDMLink.
Add Comment
1 Answer(s)

public static void getRelatedProcesses(Persistable persistable) throws Exception {

QueryResult queryresult = WfEngineHelper.service.getAssociatedProcesses(persistable, null, ((WTContained) persistable).getContainerReference());

while(queryresult.hasMoreElements()){

WfProcess wfprocess = (WfProcess)queryresult.nextElement(); //

}

}

guru@windchillguru.com Guru Answered on May 15, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.