minos.saga.definitions.operations

Classes

SagaOperation

Saga Step Operation class.

class SagaOperation[source]

Bases: Generic[T]

Saga Step Operation class.

__init__(callback, parameters=None, **kwargs)[source]
Parameters
property raw: dict[str, Any]

Generate a rew representation of the instance.

Returns

A dict instance.

property parameterized: bool

parameterized getter.

Returns

True if parameters are provided or False otherwise.

classmethod from_raw(raw, **kwargs)[source]

Build a new instance from a raw representation.

Parameters
Returns

A SagaStepOperation instance if the raw argument is not None, None otherwise.

Return type

Optional[SagaOperation[T]]