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:
at org.bonitasoft.engine.bdm.BusinessObjectDAOFactory.createDAO(
at org.bonitasoft.engine.bdm.BusinessObjectDAOFactory$ Source)

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

Is It even possible to use BusinessObjectDAOFactory from a PermissionRule?


Submitted by mrobinson_1362703 on Wed, 06/26/2019 - 16:36

"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?

No answers yet.