Skip to main content
1-Visitor
April 6, 2011
Question

PDMLink API question

  • April 6, 2011
  • 3 replies
  • 1061 views
Anyone know is there is a method that given a primarybusinessObject
(wt.fc.WTOBject) will return all related workflow processes?

Thanks in advance.

David Graham
CAx/PDM Administrator


Emhart Glass Manufacturing Inc.
Emhart Glass Research Center
123 Great Pond Drive | PO Box 220 | Windsor, CT 06095-0220 | USA
Telephone +1 (860) 298 7377 | Telefax +1 (860) 298 7397
Mobile +1 (203) 376-3144 |

3 replies

1-Visitor
April 6, 2011
David,

I believe you can use the APUI getAssociatedProcesses(pbo) to get all the associated workflow processes given a specific primary business object. So the code might look something like this:

StandardWfEngineService wfService = null;
Enumeration eProcessList = null;
try {
wfService = StandardWfEngineService.newStandardWfEngineService();
eProcessList = wfService.getAssociatedProcesses(primaryBusinessObject, null);
} catch (Exception e) {
}


Hope this helps,
Alexius C. Chukwuka
Infrastructure Analyst
JDPS Division SAP BASIS Team
John Deere Power Systems
1-Visitor
April 6, 2011
Hi David,

Try the api from wt.workflow.engine package

wt.workflow.engine.WfEngineHelper.service.
getAssociatedProcesses(Persistable object,
wt.workflow.engine.WfState state, WTContainerRef context_ref)



Prathap <">http://goo.gl/LuT5>



On Wed, Apr 6, 2011 at 10:32 AM, David Graham
<david.graham@emhartglass.com>wrote:

> Anyone know is there is a method that given a primarybusinessObject
> (wt.fc.WTOBject) will return all related workflow processes?
>
> Thanks in advance.
>
> David Graham *CAx/PDM Administrator*
1-Visitor
April 6, 2011
it's all in ext.tools.ListAll ...