how to get all attributes of relation object and add it in contract of initiation form
Hello,
i use Bonitasoft community edition 2022.2
i have Object called "Rooms" have attributes:
- roomName
- roomNumber
I have Object called "Home" that have attributes:
- Name
- Rooms (multiple)
In instantiation, when i added the contract input of "Home" , i can't select "roomName" and "roomNumber" , i just get "persistenceId_string"
but when i use task Inputs, i can select this attributes
How can i get all attributes of "room" object in my initiation form not just "persistenceId_string" to submit my form correctly ?
Hi,
When the relation in Business Object is an aggregation type, the lifecycle o those objects are loosly coupled. It means that a Room instance must already exist before adding it to the rooms of your Home. If you need a more tightly coupled reference, you can use a composition relation, in this case, you'll be able to create your House rooms' in the same transaction. In addition, if you remove a House instance, it will delete the rooms instances in cascade.
HTH
Romain