ActionEvent
ActionEvent represents a single phase transition event for an action attempt. Composite PK: (project, domain, run_name, name, attempt, phase, version).
Attributes
| Attribute | Type | Description |
|---|---|---|
| Project | string | This string represents the project component of the composite primary key for the ActionEvent. |
| Domain | string | This string represents the domain component of the composite primary key for the ActionEvent. |
| RunName | string | This string represents the run name component of the composite primary key for the ActionEvent. |
| Name | string | This string represents the name component of the composite primary key for the ActionEvent. |
| Attempt | uint32 | This uint32 represents the attempt component of the composite primary key for the ActionEvent. |
| Phase | int32 | This int32 represents the phase component of the composite primary key for the ActionEvent, corresponding to common.ActionPhase. |
| Version | uint32 | This uint32 represents the version component of the composite primary key for the ActionEvent. |
| Info | []byte | This byte array stores the serialized workflow.ActionEvent proto. |
| ErrorKind | *string | This pointer to a string stores the error kind, denormalized from Info for faster queries. |
| CreatedAt | time.Time | This time.Time stores the timestamp when the ActionEvent was created. |
| UpdatedAt | time.Time | This time.Time stores the timestamp when the ActionEvent was last updated. |
Methods
ToActionEvent()
@classmethod
def ToActionEvent() - > (*workflow.ActionEvent, error)
Converts the current ActionEvent object into a workflow.ActionEvent proto and an error. This method is used to serialize the ActionEvent for storage or transmission.
Returns
| Type | Description |
|---|---|
(*workflow.ActionEvent, error) | A tuple containing the serialized workflow.ActionEvent proto and an error object if the conversion fails. |