PermissionRule and BDM

I’m trying to create a PermissionRule that accesses the BDM but I keep getting the following error:

Caused by: org.bonitasoft.engine.bdm.BusinessObjectDaoCreationException: java.lang.ClassNotFoundException: com.acme.pm.model.ClientDAOImpl
at org.bonitasoft.engine.bdm.BusinessObjectDAOFactory.createDAO(BusinessObjectDAOFactory.java:55)
at org.bonitasoft.engine.bdm.BusinessObjectDAOFactory$createDAO.call(Unknown Source)

def daoFactory = new BusinessObjectDAOFactory();
def clientDAO = daoFactory.createDAO(apiSession, ClientDAO.class);

Is It even possible to use BusinessObjectDAOFactory from a PermissionRule?

“Bumping” this. Having the same issue today with 7.9.0 – it appears as if it isn’t possible to get at BDM data in a PermissionRule which seems like a very odd oversight.

The use case I have here is I want to look at properties of the requested business data before determining if the requesting user has access to view it. Can anyone confirm if this is meant to be possible or not?