graph TD
A[Collective Forms Data] --> B[Validators' Channel]
B --> C{Validator Choice?}
C -->|Edit & Choose| D[Agents' Channel]
D --> E{Agent Decision?}
E -->|Edit & Send Back| B[Validators' Channel]
E -->|Send to Customer| F[Customer API]
F --> G[Export Collective Form]
G --> H[Endpoint]
C -->|No Change| H[Endpoint]
style A fill:#FFD700, stroke:#000, stroke-width:2px
style B fill:#87CEEB, stroke:#000, stroke-width:2px
style C fill:#FFA500, stroke:#000, stroke-width:2px
style D fill:#90EE90, stroke:#000, stroke-width:2px
style E fill:#DAA520, stroke:#000, stroke-width:2px
style F fill:#4682B4, stroke:#000, stroke-width:2px
style G fill:#32CD32, stroke:#000, stroke-width:2px
style H fill:#BA55D3, stroke:#000, stroke-width:2px
Explanation:
-
We start with Collective Forms Data (Node A). These are all the data of collective forms in their draft state.
-
These forms are sent to the Validators' Channel (Node B), where validators have the opportunity to review the forms.
-
The validators make a choice (Validator Choice? Node C), they can either edit and choose a form or leave it as is.
-
If a form is edited and chosen, it is sent to the Agents' Channel (Node D).
-
At this point, the agent has a decision to make (Agent Decision? Node E). They can either edit the form and send it back to the Validators' Channel for review or send the form to the customer through a specific API (Customer API Node F).
-
After the customer has been sent the form, we can export the collective form (Node G) to the endpoint (Node H) I shared with you earlier.
-
If the validator chooses not to change the form at Node C, it can directly be sent to the endpoint (Node H).
-
All individual forms belonging to a collective can be altered by the validator via the collective form itself, thereby maintaining the integrity and consistency of the data.