domain

package
v0.1.67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest        = errors.New("bad request")
	ErrUnauthorized      = errors.New("unauthorized")
	ErrForbidden         = errors.New("forbidden")
	ErrNotFound          = errors.New("not found")
	ErrConflict          = errors.New("conflict")
	ErrPrecondition      = errors.New("precondition failed")
	ErrUnsupported       = errors.New("unsupported media type")
	ErrValidation        = errors.New("validation failed")
	ErrRateLimited       = errors.New("rate limited")
	ErrGatewayTimeout    = errors.New("gateway timeout")
	ErrUnavailable       = errors.New("service unavailable")
	ErrUpstream          = errors.New("upstream error")
	ErrInternal          = errors.New("internal error")
	ErrMalformedResponse = errors.New("malformed response")
)

Functions

func SortByBpmnProcessIdAscThenByVersionDesc

func SortByBpmnProcessIdAscThenByVersionDesc(pds []ProcessDefinition)

func SortByVersionDesc

func SortByVersionDesc(pds []ProcessDefinition)

Types

type Broker

type Broker struct {
	Host       string
	NodeId     int32
	Partitions []Partition
	Port       int32
	Version    string
}

type CancelResponse

type CancelResponse struct {
	StatusCode int
	Status     string
}

type ChangeStatus

type ChangeStatus struct {
	Deleted int64
	Message string
}

func (ChangeStatus) String

func (c ChangeStatus) String() string

type Deployment

type Deployment struct {
	Key      string           `json:"key,omitempty"`
	Units    []DeploymentUnit `json:"units,omitempty"`
	TenantId string           `json:"tenantId,omitempty"`
}

type DeploymentUnit

type DeploymentUnit struct {
	ProcessDefinition ProcessDefinitionDeployment `json:"processDefinition,omitempty"`
}

type DeploymentUnitData

type DeploymentUnitData struct {
	Name        string // filename for multipart
	ContentType string // e.g. application/xml
	Data        []byte
}

type Partition

type Partition struct {
	Health      PartitionHealth
	PartitionId int32
	Role        PartitionRole
}

type PartitionHealth

type PartitionHealth string

type PartitionRole

type PartitionRole string

type ProcessDefinition

type ProcessDefinition struct {
	BpmnProcessId string
	Key           string
	Name          string
	TenantId      string
	Version       int32
	VersionTag    string
}

type ProcessDefinitionDeployment

type ProcessDefinitionDeployment struct {
	ProcessDefinitionId      string `json:"processDefinitionId,omitempty"`
	ProcessDefinitionKey     string `json:"processDefinitionKey,omitempty"`
	ProcessDefinitionVersion int32  `json:"processDefinitionVersion,omitempty"`
	ResourceName             string `json:"resourceName,omitempty"`
	TenantId                 string `json:"tenantId,omitempty"`
}

type ProcessDefinitionSearchFilterOpts

type ProcessDefinitionSearchFilterOpts struct {
	Key           string
	BpmnProcessId string
	Version       int32
	VersionTag    string
}

type ProcessInstance

type ProcessInstance struct {
	BpmnProcessId             string
	EndDate                   string
	Incident                  bool
	Key                       string
	ParentFlowNodeInstanceKey string
	ParentKey                 string
	ProcessDefinitionKey      string
	ProcessVersion            int32
	ProcessVersionTag         string
	StartDate                 string
	State                     State
	TenantId                  string
	Variables                 map[string]interface{}
}

type ProcessInstanceCreation added in v0.1.64

type ProcessInstanceCreation struct {
	Key                      string                 `json:"key,omitempty"`
	BpmnProcessId            string                 `json:"bpmnProcessId,omitempty"`        // ProcessDefinitionId in API
	ProcessDefinitionKey     string                 `json:"processDefinitionKey,omitempty"` // ProcessDefinitionKey in API
	ProcessDefinitionVersion int32                  `json:"processDefinitionVersion,omitempty"`
	TenantId                 string                 `json:"tenantId,omitempty"`
	Variables                map[string]interface{} `json:"variables,omitempty"`
	StartDate                string                 `json:"startDate,omitempty"`
	StartConfirmedAt         string                 `json:"startConfirmedAt,omitempty"`
}

type ProcessInstanceData added in v0.1.64

type ProcessInstanceData struct {
	BpmnProcessId               string // ProcessDefinitionId in API
	ProcessDefinitionSpecificId string // ProcessDefinitionKey in API
	ProcessDefinitionVersion    int32
	Variables                   map[string]interface{}
	TenantId                    string
}

type ProcessInstanceSearchFilterOpts

type ProcessInstanceSearchFilterOpts struct {
	Key               string
	BpmnProcessId     string
	ProcessVersion    int32
	ProcessVersionTag string
	State             State
	ParentKey         string
}

type State

type State string
const (
	StateAll        State = "ALL"
	StateActive     State = "ACTIVE"
	StateCompleted  State = "COMPLETED"
	StateCanceled   State = "CANCELED"
	StateTerminated State = "TERMINATED"
)

func (State) EqualsIgnoreCase

func (s State) EqualsIgnoreCase(other State) bool

func (State) In

func (s State) In(states ...State) bool

func (State) IsTerminal

func (s State) IsTerminal() bool

func (State) String

func (s State) String() string

type States

type States []State

func (States) Contains

func (sx States) Contains(state State) bool

func (States) String

func (sx States) String() string

func (States) Strings

func (sx States) Strings() []string

type Topology

type Topology struct {
	Brokers               []Broker
	ClusterSize           int32
	GatewayVersion        string
	PartitionsCount       int32
	ReplicationFactor     int32
	LastCompletedChangeId string
}

Jump to

Keyboard shortcuts

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