camunda

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camunda

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

func New

func New(config configuration.Config) *Camunda

func (*Camunda) CheckInstanceReady

func (this *Camunda) CheckInstanceReady(smartServiceInstanceId string) (finished bool, missing bool, err error)

func (*Camunda) DeleteInstance

func (this *Camunda) DeleteInstance(instance model.HistoricProcessInstance) (err error)

func (*Camunda) DeployRelease

func (this *Camunda) DeployRelease(owner string, release model.SmartServiceReleaseExtended) (err error, isInvalidCamundaDeployment bool)

func (*Camunda) GetProcessInstanceBusinessKey

func (this *Camunda) GetProcessInstanceBusinessKey(processInstanceId string) (string, error, int)

func (*Camunda) GetProcessInstanceList

func (this *Camunda) GetProcessInstanceList() (result []model.HistoricProcessInstance, err error)

func (*Camunda) GetProcessParameters

func (this *Camunda) GetProcessParameters(processDefinitionKey string) (result map[string]Variable, err error)

func (*Camunda) RemoveRelease

func (this *Camunda) RemoveRelease(id string) error

func (*Camunda) Start

func (this *Camunda) Start(instance model.SmartServiceInstance) error

func (*Camunda) StartMaintenance

func (this *Camunda) StartMaintenance(releaseId string, procedure model.MaintenanceProcedure, id string, parameter []model.SmartServiceParameter) error

func (*Camunda) StopInstance

func (this *Camunda) StopInstance(smartServiceInstanceId string) error

type CamundaMaintenanceStartForm

type CamundaMaintenanceStartForm struct {
	MessageName      string                          `json:"messageName"`
	BusinessKey      string                          `json:"businessKey"`
	ProcessVariables map[string]CamundaStartVariable `json:"processVariables"`
}

type CamundaStartForm

type CamundaStartForm struct {
	BusinessKey string                          `json:"businessKey"`
	Variables   map[string]CamundaStartVariable `json:"variables"`
}

type CamundaStartVariable

type CamundaStartVariable struct {
	Value interface{} `json:"value"`
}

type HistoricProcessInstance

type HistoricProcessInstance struct {
	Id          string `json:"id"`
	EndTime     string `json:"endTime"`
	BusinessKey string `json:"businessKey"`
}

type ProcessDefinition

type ProcessDefinition struct {
	Id                string `json:"id,omitempty"`
	Key               string `json:"key,omitempty"`
	Category          string `json:"category,omitempty"`
	Description       string `json:"description,omitempty"`
	Name              string `json:"name,omitempty"`
	Version           int    `json:"Version,omitempty"`
	Resource          string `json:"resource,omitempty"`
	DeploymentId      string `json:"deploymentId,omitempty"`
	Diagram           string `json:"diagram,omitempty"`
	Suspended         bool   `json:"suspended,omitempty"`
	TenantId          string `json:"tenantId,omitempty"`
	VersionTag        string `json:"versionTag,omitempty"`
	HistoryTimeToLive int    `json:"historyTimeToLive,omitempty"`
}

type Variable

type Variable struct {
	Value     interface{} `json:"value"`
	Type      string      `json:"type"`
	ValueInfo interface{} `json:"valueInfo"`
}

Jump to

Keyboard shortcuts

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