I need to update a business object, from an ongoing (or completed) case, from outside the case (php form).
An example would be adding/updating management comments associated with the case.
I don’t know how to do this. I don’t know if it’s possible through the Rest API, or with some kind of task that can be called at any time during the life of a case.
Any ideas? Thanks a lot.
1 Like
Hi @ccastillo.ics_137421, There’s no ability to update BDM object with Bonitasoft built-in REST API - You can find the document of this API here - API Documentation
You can create a new process to update the BDM object
Example: I have a Object named Product
:
Then I created a Pool to update this Object data
Here is the Contract of process:
I initialized a Business variable with this code. You can update the product directly in the initialization script.:
def product = productDAO.findByPersistenceId(id)
product.name = name
product
1 Like
Hi TaQuangKhoi,
Thank you very much for your help. I would have liked to be able to use the API to do the update, but the important thing was to be able to do the update.
As you indicated, I have created a new generic process to do updates and it is working correctly.
Thank you very much!!!
1 Like