I'm trying the following 2 project samples.
- https://community.bonitasoft.com/project/expense-report-example
- https://community.bonitasoft.com/project/procurement-example
I succeeded in running these projects when I have only 1 project in Bonita Studio.
But when I import these 2 project samples, Bonita Studio shows "unable to resolve class com.company.model.XXX" error.
Project1 defines the following BDM objects
- com.company.model.ExpenseReport
- com.company.model.ExpenseReportLine
Project2 defines the following BDM objects
- com.company.model.Supplier
- com.company.model.Request
- com.company.model.Quotation
(I think there is no conflict between these BDMs...)
When I delete BDM objects defined in the other project, the error will be resolved.
But I want to manage these 2 project at the same time.
I'd be very happy if someone could help me.
Hi yastan1104,
If you are using Bonita 7.10 or 7.11 you can define multiple packages in your BDM as explained in the documentation. This should avoid conflicts.
Thank you delphine,
I just leaved Bonita Studio for one night and today I found that the error has been resolved... (why?)...
To reproduce the issue, I deleted all processes and all BDM objects regarding these 2 projects and imported the project bos file again. Then, the issue reproduced.
Next, I restarted Bonita Studio. The proc files still showed error status. So I opened the proc file and click "refresh" button in "Validation status" tab. Then the error resolved.
I found that restarting Bonita Studio can be workaround for this kind of issue. Thank you for your support, delphine.
Thank you delphine,
I use Bonita Studio 7.10.5.
I have already tried the solution before and faced the same kind of issue.
In my understanding this issue is not caused by conflicts. Because object's names are unique.
I've tried to reproduce but it works for me. Can you share the engine logs? And try to clean the database before deploying?
I am happy you could finally resolve it.