State machine - Referencing a condo regulation contract
Description
The following state machine presents a condo regulation contract creation process. Throughout its creation process, the contract object created could have the following state :
INITIAL:Element of the payload :
- fromSupplier : is always the Condo person for which contract is created. Condo person Id is given as an incoming parameter, and so must exist beforehands.
- toClient : is an empty group person. Created automatically in backend. Empty means no member within. Will be populated later on by owner contract when created
REFERENCED: object (abstract contract) has been correctly recordered into the backend, and, through its Id, can become referenceable by other object.Once referenced, create automatically in backend :
a specific part :
- type = PART_TYPE_PROPERTY (represents the whole property)
- easyId = PART0 (part zero)
- description = property
- referencedState = REFERENCED
an abstract part contract :
- referencing the abstract contract created first
- which contains the PART0
From
REFERENCEDstate, it is also possible to :- reference new part(s) : meaning create and add part(s), by calling state machine referencing parts
- provision owner(s) : meaning to create a new owner contract, by calling state machine referencing a owner contract, and/or or rental contract, and/or or supplier contract (and more to come)
PROVISIONED: once referenced, object can receive complementary informations which are editable (element of payload). It is also possible to reference new part(s) and / or provision owner(s) (see above).
NOTE : A contract is actually a set of contracts : an abstract contract + type of real contract, including or not a AbstractPartContract. For more information, see attributes dictionary/contract collection
For more informations about Parts (and namely PART 0) : see Attributes Dictionary