Documentation ¶
Index ¶
- type EventInstantiationAttemptedTrace
- type Model
- func (model *Model) ConsumeEvent(ev event.IEvent) (result event.ConsumptionResult, err error)
- func (model *Model) FindProcessBy(f func(*process.Process) bool) (result *process.Process, found bool)
- func (model *Model) NewEventDefinitionInstance(def schema.EventDefinitionInterface) (event.IDefinitionInstance, error)
- func (model *Model) RegisterEventConsumer(ev event.IConsumer) (err error)
- func (model *Model) Run(ctx context.Context) (err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventInstantiationAttemptedTrace ¶
type EventInstantiationAttemptedTrace struct { Event event.IEvent Element schema.FlowNodeInterface }
func (EventInstantiationAttemptedTrace) TraceInterface ¶
func (e EventInstantiationAttemptedTrace) TraceInterface()
type Model ¶
type Model struct { Element *schema.Definitions // contains filtered or unexported fields }
func (*Model) ConsumeEvent ¶
func (*Model) FindProcessBy ¶
func (*Model) NewEventDefinitionInstance ¶
func (model *Model) NewEventDefinitionInstance(def schema.EventDefinitionInterface) (event.IDefinitionInstance, error)
func (*Model) RegisterEventConsumer ¶
type Option ¶
func WithContext ¶
WithContext will pass a given context to a new model instead of implicitly generated one
func WithEventDefinitionInstanceBuilder ¶
func WithEventDefinitionInstanceBuilder(builder event.IDefinitionInstanceBuilder) Option
func WithIdGenerator ¶
func WithIdGenerator(builder id.IGeneratorBuilder) Option
func WithTracer ¶
WithTracer overrides model's tracer
Click to show internal directories.
Click to hide internal directories.