Business data records not created in DB
Create "my first process" in Bonita.
Create it similar with Getting started tutorial:
user fill application form with 3 fields and other user can fill "Approve" field.
Process run successfully, first form appeared. I fill it, second form appeared too, I fill Approve field, submit. All work.
But I haven't any changes in Business data database. Entered data don't appeared there.
I'm absolutely confused: where find a error.
It looks like the business variable value on your case is not initialized at the time of this REST API call. Are you sure that your "computerData" process business variable initialization expression returns a valid Computer typed value?
you can select your process on the whiteboard, select the "Data/Pool variables" tab from the bottom panel, double click on the business variable "computerData", a "Edit Business variable" dialog should now be opened, click on the pencil icon next to the "Default value" expression, you can now use a Script (GroovyScript) expression type and write some code to return the Computer typed value you want.
Optionally, you could also use this expression to retrieve an existing Computer typed value that already exist in the BDM, check ComputerDAO methods to do so.
Yes, the auto create initializing script does what I suggested you to do manually. The only catch is that you do not want to regenerate the contract each time so you can also edit the script manually in case of future iterations of development. You can check the content of the script to better understand how to return such instance from a Groovy Script expression.
Regarding the Data Object Access (DAO), Bonita provides an accessor for each type of data you defined. In your case you have a type "Computer" so in Groovy Script you should have access to a variable called "computerDAO" in Groovy Script expressions. You could use auto-completion (put your cursor right after the variable name in a Groovy Script expression and CTRL + SPACE) to have a list of all methods that can be used to request data from this type from the BDM. You should find at least findByPersistenceId as any type has a persistenceId attribute.