camunda

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnableToCompleteErrResp = errors.New("unable to complete task")

Functions

This section is empty.

Types

type Camunda

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

func NewCamunda

func NewCamunda(config util.Config, producer com.ProducerInterface, metrics interfaces.Metrics) (result *Camunda, err error)

func NewCamundaWithShards

func NewCamundaWithShards(config util.Config, producer com.ProducerInterface, metrics interfaces.Metrics, shards Shards) (result *Camunda)

func (*Camunda) CompleteTask

func (this *Camunda) CompleteTask(taskInfo messages.TaskInfo, outputName string, output interface{}) (err error)

func (*Camunda) Error

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

func (*Camunda) GetTasks

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

func (*Camunda) GetWorkerId

func (this *Camunda) GetWorkerId() string

func (*Camunda) SetRetry

func (this *Camunda) SetRetry(taskid string, tenantId string, retries int64)

func (*Camunda) UnlockTask

func (this *Camunda) UnlockTask(taskInfo messages.TaskInfo) (err error)

type FactoryType

type FactoryType struct{}
var Factory FactoryType

func (FactoryType) Get

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