Module: Novel
- Defined in:
- lib/novel.rb,
lib/novel/base.rb,
lib/novel/saga.rb,
lib/novel/context.rb,
lib/novel/version.rb,
lib/novel/executor.rb,
lib/novel/workflow.rb,
lib/novel/container.rb,
lib/novel/saga_repository.rb,
lib/novel/workflow_builder.rb,
lib/novel/executor/activity_flow.rb,
lib/novel/repository_adapters/redis.rb,
lib/novel/executor/compensation_flow.rb,
lib/novel/repository_adapters/memory.rb,
lib/novel/state_machines/saga_status.rb,
lib/novel/state_machines/transaction_status.rb
Defined Under Namespace
Modules: RepositoryAdapters Classes: Base, Container, Context, Error, Executor, InvalidRepositoryError, Saga, SagaRepository, StateMachines, Workflow, WorkflowBuilder
Constant Summary collapse
- BASE_LOGGER =
Logger.new(STDOUT)
- ONE_MINUTE =
60
- MEMORY_REPOSITORY =
SagaRepository.new(adapter: RepositoryAdapters::Memory.new)
- VERSION =
"0.3.0"
Class Method Summary collapse
Class Method Details
.compose(repository: MEMORY_REPOSITORY, logger: BASE_LOGGER, timeout: ONE_MINUTE, **args) ⇒ Object
25 26 27 |
# File 'lib/novel.rb', line 25 def self.compose(repository: MEMORY_REPOSITORY, logger: BASE_LOGGER, timeout: ONE_MINUTE, **args) Base.new(repository: repository, logger: logger, timeout: timeout, **args) end |