State machine - Referencing a company person
Description
The following state machine presents a company person creation process. The process starts with an INITIAL state. Throughout its creation process, the company person object created could have the following state :
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, which are editable.- some information can be directly provisioned (e.g. legal form) ;
- ohers must call sub-state machines : shareholders and legal representative(s). These machines can be called several times as there might be several shareholders and/or several legal representatives.
For more information about shareholder state machine please see valuing a shareholder
NOTE : this state machine can not be activated in a standalone mode. It must be called by other state machine, like e.g.
encoding a trusteeorencoding a supplier
- Incoming parameters : the shareholders and / or the legal representative(s) can be persons of different types. E.g 2 shareholders, one being a natural person and the other a company person. The concrete type of the required person needed will thus determine which external state machine to call for referencing the corresponding person.
NOTE : a shareholder or a legal representative can be person type of company, and so would call a state machine from the same type as the present one.