camunda

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, handler Handler, incidentHandlerProvider IncidentHandlerProvider, shards Shards) error

func StartDefault

func StartDefault(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, handler Handler) (err error)

Types

type Camunda

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

func New

func New(config configuration.Config, handler Handler, incidentHandlerProvider IncidentHandlerProvider, shards Shards) *Camunda

func (*Camunda) Error

func (this *Camunda) Error(externalTaskId string, processInstanceId string, processDefinitionId string, msg string, tenantId string)

func (*Camunda) GetProcessName

func (this *Camunda) GetProcessName(userId string, processDefinitionId string) (name string, err error)

func (*Camunda) GetTasks

func (this *Camunda) GetTasks() (tasks []model.CamundaExternalTask, err error)

func (*Camunda) GetWorkerId

func (this *Camunda) GetWorkerId() string

func (*Camunda) Start

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

func (*Camunda) StopProcessInstance

func (this *Camunda) StopProcessInstance(userId string, processInstanceId string) (err error)

type Handler

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

type IncidentHandler

type IncidentHandler interface {
	Handle(incident model.Incident) error
}

type IncidentHandlerProvider

type IncidentHandlerProvider func(ctx context.Context, wg *sync.WaitGroup, c *Camunda) (IncidentHandler, error)

type NameWrapper

type NameWrapper struct {
	Name string `json:"name"`
}

type Shards

type Shards interface {
	GetShards() (result []string, err error)
	GetShardForUser(userId string) (shardUrl string, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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