State machine - Referencing a owner contract
Description
The following state machine presents a owner contract creation process.
Owner contract shows that a person (whatever its type) owns one or more parts. This/these part(s) must exist beforehands. When created, a part is linked to one and only one condo. Nevertheless, it might happen to have, within the same owner contract, parts belonging to different condos. (seldom case, still WIP).
for more information, see here in contract collection chapter.
Throughout its creation process, the owner 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.
- fromSupplier : the former owner (any type of person) of the part(s)
- toClient : the new owner (any type of person) of the part(s)
NOTE 1 : each new owner ("toClient") is included as a party of the "toClient" (group person) of the condo regulation contract (CRC, see here), via cloud function.
The CRC is "deducted" from each part existing in the relatedParts of the owner contract.NOTE 2 : a owner may be part of several owner contracts within the same condo. In such a case, it will be added only once.
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, via action "provision"