State machine - Referencing a generic contract
Description
The following state machine presents a generic contract creation process. A generic contract can be referenced manually or via the cloud function genericContractOnAssignDocument
For more information, see also in related contract collection chapter here.
Throughout its creation process, the generic contract object created could have the following state :
INITIAL:Starting point with incoming parameters :
- fromSupplier : the provider of goods/services. Is always a company person.
- toClient : the beneficiary of the goods/services. Can be a person type of :
- company
- natural
- delegate
- union
- indivision
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". NOTE : provision can only be done through a scan document process. SeeElement of the payload :
- inChargeOf : represent the person(s) in charge of specific role(s) see here
- relatedParts : object of generic contract. Can be, e.g., part0 in case of a condo insurance ; the part to which a diagnostic is related to.
- subjects : element(s) a user can chose when provisioning the contract, and that qualifies the contract. NOTE : list and explanation about subjets are available in contract collection chapter / generic contract