FactRequest represents a request to add a fact (state change) to an existing subject in the TAPLE network. Facts are events that modify the state of a subject according to its schema and governance rules.
Fields
The identifier of the subject to which the fact will be added. This subject must already exist in the network.
The payload of the fact to be added. This contains the data that will trigger a state change in the subject. The payload must conform to the schema defined for the subject.
Usage Example
Notes
FactRequestis wrapped in theEventRequest::Factvariant- Requires evaluation and approval: Unlike other request types, fact requests must be evaluated by the governance contract and may require approval from designated approvers
- The payload structure must match the schema defined for the subject
- The governance contract’s evaluation logic will process the payload and generate a state patch
- The subject’s state will be updated by applying the generated patch
- Each successful fact increments the subject’s sequence number (sn)
Evaluation Process
- The fact request is submitted to the network
- The governance contract’s evaluation logic is executed with the current state and the payload
- The evaluator generates a patch representing the state changes
- If required by governance rules, the request goes through an approval process
- Once approved, the patch is applied to the subject’s state
- A new event is created and added to the subject’s event chain
