Hello. I am trying to retrieve data from business variable in java application. I found this thread https://community.bonitasoft.com/questions-and-answers/access-business-data-object-using-java-api-v-714 and main advice was to add bdm-model.jar and bdm-dao.jar in my pom.xml. But problem is - there is no such files in BONITA_HOME/engine-server/work/tenants/1/data-management-client/client-bdm.zip. There is no such path, no directories. (I am using bonita v7.5).
So, i have found the other solution - add bdm-client-pojo.jar to dependencies. So, i did that and i am trying to call something like that:
BusinessObjectDAOFactory daoFactory = new BusinessObjectDAOFactory(); TransportRequestDAO transportRequestDAO = daoFactory.createDAO(apiSession, TransportRequestDAO.class); transportRequestDAO.findByPersistenceId(124l);
and i am getting this error:
`java.lang.ClassNotFoundException: com.company.model.TransportRequestDAOImpl
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) ~[spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_121]
`
There is no TransportRequestDAOImpl class in my bdm-client-pojo.jar and i have no idea what should i do to fix this problem. Please help!