State machine - Referencing a supplier contract
Description
The following state machine presents a supplier contract creation process.
for more information, see here in contract collection chapter.
Throughout its creation process, the supplier 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 person (in case of oral contract)
- delegate contract person. In most of the cases, the final beneficiary should be the condo, but not directly. The condo is represented by a delegate person, i.e. the trustee. Meaning, in the model, to use a Delegate Contract Person
REFERENCED: object has been correctly sent and recordered into the BE, and, through its Id, can become referenceable by other object.part(s) => one or more part(s) objet of the contract.
PROVISIONED: once referenced, object can receive complementary informations, via action "provision"Element of the payload :
- inChargeOf : represent the person(s) in charge of specific role(s) see here
- relatedParts : object of supplier contract can be, e.g., maintenance of an elevator. In such a case, it is necessary to link the contratc to the relatedPart(s). In that sense, the context should define part(s) belonging to a particular condo. Condo may be retreived based on the "toClient" being in the contract.