camunda

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessDenied = errors.New("access denied")
View Source
var CamundaDeploymentUnknown = errors.New("deployment unknown in camunda")
View Source
var UnknownVid = errors.New("unknown vid")

Functions

func CreateBlankProcess

func CreateBlankProcess() string

func CreateBlankSvg

func CreateBlankSvg() string

func Get

func Get(url string, result interface{}) (err error)

Types

type Camunda

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

func New

func New(config configuration.Config, vid *vid.Vid, shards *shards.Shards, processIo *processio.ProcessIo) *Camunda

func (*Camunda) CheckDeploymentAccess

func (this *Camunda) CheckDeploymentAccess(vid string, userId string) (err error)

func (*Camunda) CheckHistoryAccess

func (this *Camunda) CheckHistoryAccess(id string, userId string) (definitionId string, err error)

func (*Camunda) CheckProcessDefinitionAccess

func (this *Camunda) CheckProcessDefinitionAccess(id string, userId string) (err error)

func (*Camunda) CheckProcessInstanceAccess

func (this *Camunda) CheckProcessInstanceAccess(id string, userId string) (err error)

func (*Camunda) DeployProcess

func (this *Camunda) DeployProcess(name string, xml string, svg string, owner string, source string) (deploymentId string, err error)

returns original deploymentId (not vid)

func (*Camunda) GetDefinitionByDeploymentVid

func (this *Camunda) GetDefinitionByDeploymentVid(vid string, userId string) (result model.ProcessDefinitions, err error)

func (*Camunda) GetDeployment

func (this *Camunda) GetDeployment(vid string, userId string) (result model.Deployment, err error)

func (*Camunda) GetDeploymentCountByShard

func (this *Camunda) GetDeploymentCountByShard(deploymentId string, shard string) (result model.Count, err error)

func (*Camunda) GetDeploymentList

func (this *Camunda) GetDeploymentList(userId string, params url.Values) (result model.Deployments, err error)

func (*Camunda) GetExtendedDeployment

func (this *Camunda) GetExtendedDeployment(deployment model.Deployment, userId string) (result model.ExtendedDeployment, err error)

func (*Camunda) GetExtendedDeploymentList

func (this *Camunda) GetExtendedDeploymentList(userId string, params url.Values) (result []model.ExtendedDeployment, err error)

func (*Camunda) GetFilteredProcessInstanceHistoryList

func (this *Camunda) GetFilteredProcessInstanceHistoryList(userId string, query url.Values) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetFilteredProcessInstanceHistoryListWithTotal

func (this *Camunda) GetFilteredProcessInstanceHistoryListWithTotal(userId string, query url.Values) (result model.HistoricProcessInstancesWithTotal, err error)

func (*Camunda) GetInstancesByDeploymentVid

func (this *Camunda) GetInstancesByDeploymentVid(vid string, userId string) (result model.ProcessInstances, err error)

func (*Camunda) GetProcessDefinition

func (this *Camunda) GetProcessDefinition(id string, userId string) (result model.ProcessDefinition, err error)

func (*Camunda) GetProcessDefinitionDiagram

func (this *Camunda) GetProcessDefinitionDiagram(id string, userId string) (resp *http.Response, err error)

func (*Camunda) GetProcessInstanceCount

func (this *Camunda) GetProcessInstanceCount(userId string) (result model.Count, err error)

func (*Camunda) GetProcessInstanceHistoryByProcessDefinition

func (this *Camunda) GetProcessInstanceHistoryByProcessDefinition(id string, userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryByProcessDefinitionFinished

func (this *Camunda) GetProcessInstanceHistoryByProcessDefinitionFinished(id string, userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryByProcessDefinitionUnfinished

func (this *Camunda) GetProcessInstanceHistoryByProcessDefinitionUnfinished(id string, userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryList

func (this *Camunda) GetProcessInstanceHistoryList(userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryListFinished

func (this *Camunda) GetProcessInstanceHistoryListFinished(userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryListUnfinished

func (this *Camunda) GetProcessInstanceHistoryListUnfinished(userId string) (result model.HistoricProcessInstances, err error)

func (*Camunda) GetProcessInstanceHistoryListWithTotal

func (this *Camunda) GetProcessInstanceHistoryListWithTotal(userId string, searchtype string, searchvalue string, limit string, offset string, sortby string, sortdirection string, finished bool) (result model.HistoricProcessInstancesWithTotal, err error)

func (*Camunda) GetProcessInstanceList

func (this *Camunda) GetProcessInstanceList(userId string) (result model.ProcessInstances, err error)

func (*Camunda) GetProcessParameters

func (this *Camunda) GetProcessParameters(processDefinitionId string, userId string) (result map[string]model.Variable, err error)

func (*Camunda) GetRawDefinitionsByDeployment

func (this *Camunda) GetRawDefinitionsByDeployment(deploymentId string, userId string) (result model.ProcessDefinitions, err error)

func (*Camunda) RemoveProcess

func (this *Camunda) RemoveProcess(deploymentId string, userId string) (err error)

uses original deploymentId (not vid)

func (*Camunda) RemoveProcessForShard

func (this *Camunda) RemoveProcessForShard(deploymentId string, shard string) (err error)

func (*Camunda) RemoveProcessFromAllShards

func (this *Camunda) RemoveProcessFromAllShards(deploymentId string) (err error)

func (*Camunda) RemoveProcessInstance

func (this *Camunda) RemoveProcessInstance(id string, userId string) (err error)

func (*Camunda) RemoveProcessInstanceHistory

func (this *Camunda) RemoveProcessInstanceHistory(id string, userId string) (err error)

func (*Camunda) SendEventTrigger

func (this *Camunda) SendEventTrigger(userId string, msg map[string]interface{}) (response []byte, err error)

func (*Camunda) SetProcessInstanceVariable

func (this *Camunda) SetProcessInstanceVariable(instanceId string, userId string, variableName string, variableValue interface{}) error

func (*Camunda) StartProcess

func (this *Camunda) StartProcess(processDefinitionId string, userId string, parameter map[string]interface{}) (err error)

func (*Camunda) StartProcessGetId

func (this *Camunda) StartProcessGetId(processDefinitionId string, userId string, parameter map[string]interface{}) (result model.ProcessInstance, err error)

type CamundaXmlWrapper

type CamundaXmlWrapper struct {
	Id   string `json:"id"`
	Bpmn string `json:"bpmn20Xml"`
}

type ProcessStartParameter

type ProcessStartParameter struct {
	Id         string            `json:"id"`
	Label      string            `json:"label"`
	Type       string            `json:"type"`
	Default    string            `json:"default"`
	Properties map[string]string `json:"properties"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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