How to get associate Workflow process from primaryBusinessObject in Windchill

How to get associate Workflow process from primaryBusinessObject in Windchill

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(); //
}
}
Add Comment

Your Answer

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