State machine - Referencing a contact contract
Description
The following state machine presents a contact contract creation process. This contract is created automatically from the outlook add-in
For more information, see contract collection chapter, model and display
Throughout its creation process, the contact contract object created could have the following state :
INITIAL:Starting point with incoming parameters :
- fromSupplier : the person who has a direct relationship with the company using the system : employee contract, legal representant contract or - but seldom - a supplier contract (case of independant sales person)
- toClient : the person "employer" = the company using the application
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.Element of the payload :
- begin : date of the day (system)
- relatedPerson : array of one or more person(s) that must exist before being added here.
- originType : enum. Describes the channel of relationship : email, phone...
- originCategory : enum. Describes the nature of the contact : tenant applicant, supplier....
NOTE : if the person does not exist, it must be referenced by calling state machine 'reference a person', according to seeked type of person
The contract can be provisionned several times. E.g., a real estate agency employee receives every day tenant candidates. He/she can add them to this contract.