WorkflowApprovalReceivedEvent class

Emitted when a workflow approval decision is received.

Inheritance

Constructors

WorkflowApprovalReceivedEvent({required String workflowId, required String approvalId, required bool approved, required String approver, String? decision, String? comment, DateTime? decisionTimestamp, required String eventId, required String correlationId, required String runId, required String workspaceId, required DateTime timestamp, required OpsEventMeta meta, String version = '1.0', String? causationId})
WorkflowApprovalReceivedEvent.create({required String workflowId, required String approvalId, required bool approved, required String approver, String? decision, String? comment, DateTime? decisionTimestamp, required String correlationId, String? causationId, required String runId, required String workspaceId, required OpsEventMeta meta})
Convenience factory with auto-generated ID and timestamp.
factory

Properties

approvalId → String
Approval request identifier.
final
approved → bool
Whether the approval was granted.
final
approver → String
Approver who made the decision.
final
causationId → String?
Causation ID pointing to the event that caused this one.
finalinherited
comment → String?
Optional comment from the approver.
final
correlationId → String
Correlation ID linking related events across a workflow.
finalinherited
decision → String?
Decision string (e.g. 'approved', 'rejected', 'deferred').
final
decisionTimestamp → DateTime?
Timestamp when the decision was made.
final
eventId → String
Unique event identifier (UUID-like).
finalinherited
eventType → String
Fully qualified event type (e.g. 'ops.pipeline.started').
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
meta → OpsEventMeta
Event metadata for tracing and provenance.
finalinherited
payload → Map<String, dynamic>
Event payload data.
finalinherited
runId → String
Execution run ID.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
Event timestamp.
finalinherited
version → String
Event schema version for forward compatibility.
finalinherited
workflowId → String
Workflow identifier.
final
workspaceId → String
Workspace scope.
finalinherited

Methods

copyWith({String? eventId, String? eventType, String? version, String? correlationId, String? causationId, String? runId, String? workspaceId, DateTime? timestamp, Map<String, dynamic>? payload, OpsEventMeta? meta}) → OpsEvent
Create a copy with updated fields.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to JSON map.
inherited
toPortEvent() → PortEvent
Convert this ops event to a PortEvent for transport via EventPort.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited