Skip to main content

ActionEvent

ActionEvent represents a single phase transition event for an action attempt. Composite PK: (project, domain, run_name, name, attempt, phase, version).

Attributes

AttributeTypeDescription
ProjectstringThis string represents the project component of the composite primary key for the ActionEvent.
DomainstringThis string represents the domain component of the composite primary key for the ActionEvent.
RunNamestringThis string represents the run name component of the composite primary key for the ActionEvent.
NamestringThis string represents the name component of the composite primary key for the ActionEvent.
Attemptuint32This uint32 represents the attempt component of the composite primary key for the ActionEvent.
Phaseint32This int32 represents the phase component of the composite primary key for the ActionEvent, corresponding to common.ActionPhase.
Versionuint32This uint32 represents the version component of the composite primary key for the ActionEvent.
Info[]byteThis byte array stores the serialized workflow.ActionEvent proto.
ErrorKind*stringThis pointer to a string stores the error kind, denormalized from Info for faster queries.
CreatedAttime.TimeThis time.Time stores the timestamp when the ActionEvent was created.
UpdatedAttime.TimeThis 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

TypeDescription
(*workflow.ActionEvent, error)A tuple containing the serialized workflow.ActionEvent proto and an error object if the conversion fails.