camunda

package
v0.0.0-...-f5406f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEventTrigger

func SendEventTrigger(config configuration.Config, eventId string, variables map[string]model.CamundaVariable) (err error)

func Start

func Start(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, smartServiceRepo SmartServiceRepository, handler Handler)

Types

type Camunda

type Camunda struct {
	// contains filtered or unexported fields
}

func New

func New(config configuration.Config, smartServiceRepo SmartServiceRepository, handler Handler) *Camunda

func (*Camunda) Start

func (this *Camunda) Start(ctx context.Context, wg *sync.WaitGroup)

type Handler

type Handler interface {
	Do(task model.CamundaExternalTask) (modules []model.Module, outputs map[string]interface{}, err error)
	Undo(modules []model.Module, reason error)
}

type SmartServiceRepository

type SmartServiceRepository interface {
	SendWorkerError(task model.CamundaExternalTask, err error) error
	SendWorkerModules(modules []model.Module) (result []model.SmartServiceModule, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL