Is it possible to create a CRUD Rest Api extension ?

1
0
-1

hi guys,

I would like to developpe a rest api to create / edit / delete data from the business data model.
I tried to use DAO object. but in bonitasoft, DAO are designed only to read data.

Any suggestion or solution to this problem ?

This is an exemple of DAO :

public interface ApprovalDAO
extends BusinessObjectDAO
{

public Approval findByPersistenceId(Long persistenceId);

public List findByApprover(String approver, int startIndex, int maxResults);

public List findByVote(Boolean vote, int startIndex, int maxResults);

public List findByComment(String comment, int startIndex, int maxResults);

public List find(int startIndex, int maxResults);

public Long countForFindByApprover(String approver);

public Long countForFindByVote(Boolean vote);

public Long countForFindByComment(String comment);

public Long countForFind();

public Approval newInstance();

}

1 answer

1
0
-1

Hi,

You're right in Bonita the only way to create/update/delete data in the BDM is through a process. This is due to the nature of the platform. Bonita platform allows developer to build process-based applications therefore all the modification operations have to be triggered through a process. This is done in order to ensure data governance and audit trail.

Cheers

Notifications