cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

PDMLink API question

dgraham-4
1-Newbie

PDMLink API question

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 3

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

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*

it's all in ext.tools.ListAll ...
Top Tags