model

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const WardenBusinessKeyPrefix = "wardened:"

Variables

This section is empty.

Functions

func NormalizeBpmnDeploymentId added in v0.0.25

func NormalizeBpmnDeploymentId(id string) string

Types

type Deployment

type Deployment struct {
	camundamodel.Deployment
	SyncInfo
}

type DeploymentMetadata

type DeploymentMetadata struct {
	Metadata
	SyncInfo
}

type DeploymentWardenInfo added in v0.0.25

type DeploymentWardenInfo struct {
	DeploymentId string                  `json:"deployment_id" bson:"deployment_id"`
	NetworkId    string                  `json:"network_id" bson:"network_id"`
	Deployment   DeploymentWithEventDesc `json:"deployment" bson:"deployment"`
}

type DeploymentWardenInfoQuery added in v0.0.25

type DeploymentWardenInfoQuery struct {
	NetworkIds           []string
	ProcessDeploymentIds []string
	Sort                 string
	Limit                int64
	Offset               int64
}

type DeploymentWithEventDesc

type DeploymentWithEventDesc struct {
	deploymentmodel.Deployment `bson:",inline"`
	DeviceIdToLocalId          map[string]string `json:"device_id_to_local_id"`
	ServiceIdToLocalId         map[string]string `json:"service_id_to_local_id"`
	EventDescriptions          []model.EventDesc `json:"event_descriptions"`
}

type ExtendedDeployment

type ExtendedDeployment struct {
	Deployment
	Diagram      string `json:"diagram"`
	DefinitionId string `json:"definition_id"`
	Error        string `json:"error"`
}

type HistoricProcessInstance

type HistoricProcessInstance struct {
	camundamodel.HistoricProcessInstance
	SyncInfo
}

type HistoryQuery

type HistoryQuery struct {
	State               string
	ProcessDefinitionId string
	Search              string
}

type Incident

type Incident struct {
	camundamodel.Incident
	SyncInfo
}

type IncidentQuery added in v0.0.25

type IncidentQuery struct {
	NetworkIds         []string
	ProcessInstanceIds []string
	Sort               string
	Limit              int64
	Offset             int64
}

type InstanceQuery added in v0.0.25

type InstanceQuery struct {
	NetworkIds   []string
	BusinessKeys []string
	Sort         string
	Limit        int64
	Offset       int64
}

type LastNetworkContact

type LastNetworkContact struct {
	NetworkId string    `json:"network_id"`
	Time      time.Time `json:"time"`
}

type Metadata

type Metadata struct {
	CamundaDeploymentId string                           `json:"camunda_deployment_id"`
	ProcessParameter    map[string]camundamodel.Variable `json:"process_parameter"`
	DeploymentModel     DeploymentWithEventDesc          `json:"deployment_model"`
}

type MetadataQuery

type MetadataQuery struct {
	NetworkId           *string `json:"network_id"`
	CamundaDeploymentId *string `json:"camunda_deployment_id"`
	DeploymentId        *string `json:"deployment_id"`
}

type ProcessDefinition

type ProcessDefinition struct {
	camundamodel.ProcessDefinition
	SyncInfo
}

type ProcessInstance

type ProcessInstance struct {
	camundamodel.ProcessInstance
	SyncInfo
}

type StartMessage

type StartMessage struct {
	DeploymentId string                 `json:"deployment_id"`
	Parameter    map[string]interface{} `json:"parameter"`
	BusinessKey  string                 `json:"business_key"`
}

type SyncInfo

type SyncInfo struct {
	NetworkId       string    `json:"network_id"`
	IsPlaceholder   bool      `json:"is_placeholder"`
	MarkedForDelete bool      `json:"marked_for_delete"`
	MarkedAsMissing bool      `json:"marked_as_missing"`
	SyncDate        time.Time `json:"sync_date"`
}

type WardenInfo added in v0.0.25

type WardenInfo struct {
	CreationTime        int64                  `json:"creation_time" bson:"creation_time"`                 //unix timestamp
	NetworkId           string                 `json:"network_id" bson:"network_id"`                       //must be the same as the process-instance network-id
	BusinessKey         string                 `json:"business_key" bson:"business_key"`                   //must be the same as the process-instance business-key and start with WardenBusinessKeyPrefix; the prefix may be set by Warden.MarkInstanceBusinessKeyAsWardenHandled
	ProcessDeploymentId string                 `json:"process_deployment_id" bson:"process_deployment_id"` //must be the same as the process-instance process-deployment-id
	StartParameters     map[string]interface{} `json:"start_parameters" bson:"start_parameters"`
}

func (WardenInfo) IsOlderThen added in v0.0.25

func (this WardenInfo) IsOlderThen(duration time.Duration) bool

func (WardenInfo) Validate added in v0.0.25

func (this WardenInfo) Validate() error

type WardenInfoQuery added in v0.0.25

type WardenInfoQuery struct {
	NetworkIds           []string
	BusinessKeys         []string
	ProcessDeploymentIds []string
	Sort                 string
	Limit                int64
	Offset               int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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