* @param pd the process definition to wrap
*/
public ProcDefWrapper (WorkflowService wfs, ProcessDefinitionDirectory pdd,
ProcessDefinition pd)
throws RemoteException {
MethodInvocationBatch mib = new MethodInvocationBatch ();
mib.addInvocation(pd, "packageId", null, null);
mib.addInvocation(pd, "packageName", null, null);
mib.addInvocation(pd, "processId", null, null);
mib.addInvocation(pd, "processName", null, null);
mib.addInvocation(pd, "mgrName", null, null);
mib.addInvocation(pd, "version", null, null);
mib.addInvocation(pd, "processHeader", null, null);
mib.addInvocation(-1, "description", null, null, true);
mib.addInvocation(pd, "toXPDL", null, null);
MethodInvocationBatch.Result mir = null;
try {
mir = (MethodInvocationBatch.Result)wfs.executeBatch(mib);
if (mir.hasExceptions ()) {
Exception e = mir.firstException ();