BaseOperationResult🔗

The object containing the intermediate state of an operation.
This class is deliberately not related to Result by inheritance (and OperationResult below is, in turn, not related to this class by inheritance either). aas-core-codegen refuses to generate a schema for a concrete class with concrete descendants unless it is marked @serialization(with_model_type=True), which would introduce a modelType discriminator property that the official schema does not have for this hierarchy. Flattening the hierarchy avoids that mismatch, at the cost of repeating BaseOperationResult.messages here.

See: https://industrialdigitaltwin.io/aas-specifications/IDTA-01002/v3.2/specification/interfaces-payload.html#BaseOperationResult

Properties 🔗

executionState: ExecutionState 🔗
Execution state
messages: Optional[List[Message]] 🔗
Additional messages containing information for the requester
success: Optional[bool] 🔗
Flag indicating whether the business operation behind the operation was successful (true) or not (false)

Invariants 🔗

  • Messages must be either not set or have at least one item.
    not (self.messages is not None)
    or (len(self.messages) >= 1)