ProcessDefinitionInfo pdi
= ((ProcessDefinitionDirectoryLocal)ctx.getEJBLocalObject())
.lookupProcessDefinitionInfo (packageId, processId);
if (!pdi.enabled) {
ctx.setRollbackOnly();
throw new NotEnabledException("Process definition disabled.");
}
return processLocalHome().create
(pdi.archivedXpdlId, pdi.processDefinition, requester);
} catch (CreateException ce) {
throw new EJBException(ce);