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