Retrieve value of business object use Bonita Engine API
Hello, i'm new Bonita, i have a case need idea for project Spring boot retrieve value on business object.
The first, i seen that how can get value of business object with add file jar entitis and DAO in link :
And it work good. But this way is very dependencies file jar export from Bonita and just static attribute for external project.
So when i need change (add, modify) business data object, i must reset bdm and build again to project, it not real for release.
Anyone have idea retrieve value of business object use Java API not dependency 2 file jar DAO and entity?.
The subscription version of Bonita lets you add up to 5 "Search Keys" to a process, allowing one to attribute String data to your process instances. You can then access through the API like so:
Not sure if this is the intended use for Search Keys, and if you need access to the entire BDM object, non-String data, or more than 5 fields this won't work for you. In my project, each process has 1 BDM object associated with it. When I start a process, I set the value of it's StringIndex1 to the ID of my BDM object, so later I can easily find process instances by my BDM object ID's.
Ultimately, I think the correct way to access BDM data in your Java application requires you to rely on the exported dependencies from Bonita like you found. Seeing as modifying the BDM in any way completely resets it, it seems like one shouldn't really be doing it often.
Thank you very much for answer,
I will find other solution with rest api or customize it and currently, I use Community version :)
Can you give your contract like email or facebook, i want to direct message for support faster about problems?
And now is Bonita not suport for retrieve value in archived case? I have easy retrieved business object from open case but when it case complete, i seen fail with error:Not found reference Business name "xx" with processInstanceId "yy" althought i put direct caseId and like function of open case(true function) . That very sad when client who want to see detail a task done in my Spring boot UI. Can you have idea for it?
Thanks for answer,
archivedProcessInstanceId This image is that right archivedProcessInstanceId you mean?
I have create two function with your example code. And i just fine with active task (This image test success Active task). But with archived task, i alway get error like this Image error archived task. I have try other way, search archived process -> get BDM. But still fail with error other way.
Is you have try get business object with archived?. Can you give your contract info like email or fb, twiter, etc for support, I will be very grateful :).
Hello, today i tried example List getArchivedProcessInstaces, it give empty list but in portal i have task archived (41002). So currently i'm still choke with retrieve value in archived process mean find archived process. Any idea for solution will be help me more.