State machine - Referencing a rental contract
Description
The following state machine presents a rental contract creation process.
Rental contract shows that a person (whatever its type except unknow and group person) who owns 1 or more parts, is renting all or party of its parts to a tenant. E.g. a flat only ; or a flat + a garage...
At this stage, a rental contract can be created from the display of a condo regulation contract or a part
Throughout its creation process, the rental contract object created could have the following state :
INITIAL:Starting point with incoming parameters :
- part(s) => one or more part(s) objet of the contract. This/these part(s) must exist beforehands.
- fromSupplier : actually is the delegate person created via a rental delegate person. This contract is a prerequisite before being able to create a valid rental contract. The delegate rental contract includes the owner that rents the part(s) and a real estate agency. For memory, this owner is included in the group person existing in the condo regulation contract to which the part(s) is/are belonging.
- toClient : is/are the tenant(s). Can be any kind of person. If there are multiple tenants, a group person must be used.
NOTE : multiple tenants means : several distinct persons. For instance, a mariage is only one person, represented by a union person => not a group. A common real case for a multi-tenants rental using group person would be with students.
REFERENCED: object has been correctly sent and recordered into the BE, and, through its Id, can become referenceable by other object.PROVISIONED: once referenced, object can receive complementary informations, which are editable.