Documentation
¶
Index ¶
- func Start(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, ...) error
- func StartDefault(ctx context.Context, wg *sync.WaitGroup, config configuration.Config, ...) (err error)
- type Camunda
- func (this *Camunda) Error(externalTaskId string, processInstanceId string, processDefinitionId string, ...)
- func (this *Camunda) GetProcessName(userId string, processDefinitionId string) (name string, err error)
- func (this *Camunda) GetTasks() (tasks []model.CamundaExternalTask, err error)
- func (this *Camunda) GetWorkerId() string
- func (this *Camunda) Start(ctx context.Context, wg *sync.WaitGroup) (err error)
- func (this *Camunda) StopProcessInstance(userId string, processInstanceId string) (err error)
- type Handler
- type IncidentHandler
- type IncidentHandlerProvider
- type NameWrapper
- type Shards
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 ¶
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) GetProcessName ¶
func (*Camunda) GetTasks ¶
func (this *Camunda) GetTasks() (tasks []model.CamundaExternalTask, err error)
func (*Camunda) GetWorkerId ¶
type Handler ¶
type Handler interface {
Do(task model.CamundaExternalTask) (outputs map[string]interface{}, err error)
}
type IncidentHandler ¶
type IncidentHandlerProvider ¶
type NameWrapper ¶
type NameWrapper struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.