variable

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BooleanType

type BooleanType struct {
}

func (BooleanType) GetTypeName

func (boolType BooleanType) GetTypeName() string

func (BooleanType) GetValue

func (boolType BooleanType) GetValue(valueFields ValueFields) interface{}

func (BooleanType) SetValue

func (boolType BooleanType) SetValue(value interface{}, valueFields ValueFields)

type DefaultVariableTypes

type DefaultVariableTypes struct {
}

func (DefaultVariableTypes) AddType

func (variableTypes DefaultVariableTypes) AddType(variableType VariableType)

func (DefaultVariableTypes) GetVariableType

func (variableTypes DefaultVariableTypes) GetVariableType(typeName string) VariableType

type HistoricVariable

type HistoricVariable struct {
	ID_              string     `gorm:"column:id_;type:varchar(64);primaryKey" json:"id_"`
	Rev_             *int32     `gorm:"column:rev_;type:integer;default:1" json:"rev_"`
	ProcInstID_      *string    `gorm:"column:proc_inst_id_;type:varchar(64);index:act_idx_hi_procvar_proc_inst,priority:1" json:"proc_inst_id_"`
	ExecutionID_     *string    `gorm:"column:execution_id_;type:varchar(64);index:act_idx_hi_procvar_exe,priority:1" json:"execution_id_"`
	TaskID_          *string    `gorm:"column:task_id_;type:varchar(64);index:act_idx_hi_procvar_task_id,priority:1" json:"task_id_"`
	Name_            string     `gorm:"column:name_;type:varchar(255);not null;index:act_idx_hi_procvar_name_type,priority:1" json:"name_"`
	VarType_         *string    `gorm:"column:var_type_;type:varchar(100);index:act_idx_hi_procvar_name_type,priority:2" json:"var_type_"`
	ScopeID_         *string    `gorm:"column:scope_id_;type:varchar(255);index:act_idx_hi_var_scope_id_type,priority:1" json:"scope_id_"`
	SubScopeID_      *string    `gorm:"column:sub_scope_id_;type:varchar(255);index:act_idx_hi_var_sub_id_type,priority:1" json:"sub_scope_id_"`
	ScopeType_       *string    `` /* 152-byte string literal not displayed */
	BytearrayID_     *string    `gorm:"column:bytearray_id_;type:varchar(64)" json:"bytearray_id_"`
	Double_          *float64   `gorm:"column:double_;type:double precision" json:"double_"`
	Long_            *int64     `gorm:"column:long_;type:bigint" json:"long_"`
	Text_            *string    `gorm:"column:text_;type:varchar(4000)" json:"text_"`
	CreateTime_      *time.Time `gorm:"column:create_time_;type:timestamp without time zone" json:"create_time_"`
	LastUpdatedTime_ *time.Time `gorm:"column:last_updated_time_;type:timestamp without time zone" json:"last_updated_time_"`
}

func (HistoricVariable) GetName

func (variable HistoricVariable) GetName() string

func (HistoricVariable) GetNumberValue

func (variable HistoricVariable) GetNumberValue() int

func (HistoricVariable) GetProcessInstanceId

func (variable HistoricVariable) GetProcessInstanceId() string

func (HistoricVariable) GetTaskId

func (variable HistoricVariable) GetTaskId() string

func (HistoricVariable) GetTextValue

func (variable HistoricVariable) GetTextValue() string

func (*HistoricVariable) SetNumberValue

func (variable *HistoricVariable) SetNumberValue(value int)

func (*HistoricVariable) SetTextValue

func (variable *HistoricVariable) SetTextValue(value string)

func (*HistoricVariable) SetValue

func (variable *HistoricVariable) SetValue(value interface{}, variableType VariableType)

func (*HistoricVariable) TableName

func (variable *HistoricVariable) TableName() string

type IntType

type IntType struct {
}

func (IntType) GetTypeName

func (intType IntType) GetTypeName() string

func (IntType) GetValue

func (intType IntType) GetValue(valueFields ValueFields) interface{}

func (IntType) SetValue

func (intType IntType) SetValue(value interface{}, valueFields ValueFields)

type MapType

type MapType struct {
}

func (MapType) GetTypeName

func (mapType MapType) GetTypeName() string

func (MapType) GetValue

func (mapType MapType) GetValue(valueFields ValueFields) interface{}

func (MapType) SetValue

func (mapType MapType) SetValue(value interface{}, valueFields ValueFields)

type StringType

type StringType struct {
}

func (StringType) GetTypeName

func (stringType StringType) GetTypeName() string

func (StringType) GetValue

func (stringType StringType) GetValue(valueFields ValueFields) interface{}

func (StringType) SetValue

func (stringType StringType) SetValue(value interface{}, valueFields ValueFields)

type ValueFields

type ValueFields interface {
	GetName() string

	GetProcessInstanceId() string

	GetTaskId() string

	GetNumberValue() int

	SetNumberValue(value int)

	GetTextValue() string

	SetTextValue(value string)
}

type Variable

type Variable struct {
	ID_          string   `gorm:"column:id_;type:varchar(64);primaryKey" json:"id_"`
	Rev_         *int32   `gorm:"column:rev_;type:integer" json:"rev_"`
	Type_        string   `gorm:"column:type_;type:varchar(255);not null" json:"type_"`
	Name_        string   `gorm:"column:name_;type:varchar(255);not null;uniqueIndex:act_ru_variable__uniq,priority:1" json:"name_"`
	ExecutionID_ *string  `gorm:"column:execution_id_;type:varchar(64);index:act_idx_var_exe,priority:1" json:"execution_id_"`
	ProcInstID_  *string  `` /* 148-byte string literal not displayed */
	TaskID_      *string  `gorm:"column:task_id_;type:varchar(64);index:act_idx_variable_task_id,priority:1" json:"task_id_"`
	ScopeID_     *string  `gorm:"column:scope_id_;type:varchar(255);index:act_idx_ru_var_scope_id_type,priority:1" json:"scope_id_"`
	SubScopeID_  *string  `gorm:"column:sub_scope_id_;type:varchar(255);index:act_idx_ru_var_sub_id_type,priority:1" json:"sub_scope_id_"`
	ScopeType_   *string  `` /* 152-byte string literal not displayed */
	BytearrayID_ *string  `gorm:"column:bytearray_id_;type:varchar(64);index:act_idx_var_bytearray,priority:1" json:"bytearray_id_"`
	Double_      *float64 `gorm:"column:double_;type:double precision" json:"double_"`
	Long_        *int64   `gorm:"column:long_;type:bigint" json:"long_"`
	Text_        *string  `gorm:"column:text_;type:varchar(4000)" json:"text_"`
}

func (Variable) GetName

func (variable Variable) GetName() string

func (Variable) GetNumberValue

func (variable Variable) GetNumberValue() int

func (Variable) GetProcessInstanceId

func (variable Variable) GetProcessInstanceId() string

func (Variable) GetTaskId

func (variable Variable) GetTaskId() string

func (Variable) GetTextValue

func (variable Variable) GetTextValue() string

func (*Variable) SetNumberValue

func (variable *Variable) SetNumberValue(value int)

func (*Variable) SetTextValue

func (variable *Variable) SetTextValue(value string)

func (*Variable) SetValue

func (variable *Variable) SetValue(value interface{}, variableType VariableType)

func (*Variable) TableName

func (variable *Variable) TableName() string

TableName ActRuVariable's table name

type VariableInstanceEntit

type VariableInstanceEntit interface {
	GetType() VariableType

	SetType(variableType VariableType)
}

type VariableManager

type VariableManager struct {
	VariableTypes VariableTypes
}

func GetVariableManager

func GetVariableManager() VariableManager

type VariableType

type VariableType interface {
	GetTypeName() string

	GetValue(valueFields ValueFields) interface{}

	SetValue(value interface{}, valueFields ValueFields)
}

type VariableTypes

type VariableTypes interface {
	AddType(variableType VariableType)

	GetVariableType(typeName string) VariableType
}

Jump to

Keyboard shortcuts

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