Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to get "different tasks of a change process" of a change notice in code

$
0
0

Archana,

 

You can use changehelper2 to find related Object. once you have object then you get related process using

WfEngineHelper.service.getAssociatedProcesses API once you have process the use below API's to get the all activities/ workflow process task status

 

  WTChangeOrder2 wtChangeOrder = (WTChangeOrder2) ref.getObject();

  Enumeration processes = WfEngineHelper.service.getAssociatedProcesses(wtChangeOrder, null);

  while (processes.hasMoreElements())

  WfProcess process = (WfProcess) processes.nextElement();

  NmOid nmOid = new NmOid(process);

  QueryResult status = WorkflowCommands.getRouteStatus(nmOid);

 

}

Hope it helps!!!

 

 

Thanks

Shreyas


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>