logics

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logic

type Logic struct {
	*backbone.Engine
}

func (*Logic) CreateProcessInstance

func (lgc *Logic) CreateProcessInstance(kit *rest.Kit, processData map[string]interface{}) (int64, errors.CCErrorCoder)

func (*Logic) DeleteProcessInstance

func (lgc *Logic) DeleteProcessInstance(kit *rest.Kit, procID int64) errors.CCErrorCoder

func (*Logic) DeleteProcessInstanceBatch

func (lgc *Logic) DeleteProcessInstanceBatch(kit *rest.Kit, procIDs []int64) errors.CCErrorCoder

func (*Logic) DiffWithProcessTemplate

func (lgc *Logic) DiffWithProcessTemplate(t *metadata.ProcessProperty, i *metadata.Process, host map[string]interface{},
	attrMap map[string]metadata.Attribute) []metadata.ProcessChangedAttribute

it works to find the different attribute value between the process instance and it's bounded process template. return with the changed attribute's details.

func (*Logic) GetProcessInstanceWithID

func (lgc *Logic) GetProcessInstanceWithID(kit *rest.Kit, procID int64) (*metadata.Process, errors.CCErrorCoder)

func (*Logic) ListProcessInstanceWithIDs

func (lgc *Logic) ListProcessInstanceWithIDs(kit *rest.Kit, procIDs []int64) ([]metadata.Process, errors.CCErrorCoder)

func (*Logic) UpdateProcessInstance

func (lgc *Logic) UpdateProcessInstance(kit *rest.Kit, procID int64, info mapstr.MapStr) errors.CCErrorCoder

type Logics

type Logics struct {
	*backbone.Engine

	ErrHandle errors.DefaultCCErrorIf
	// contains filtered or unexported fields
}

func NewLogics

func NewLogics(b *backbone.Engine, header http.Header, esbServ esbserver.EsbClientInterface, procHostInst *ProcHostInstConfig) *Logics

NewLogics get logic handle

type ProcHostInstConfig

type ProcHostInstConfig struct {
	MaxEventCount                int
	MaxRefreshModuleCount        int
	GetModuleIDInterval          time.Duration
	FetchGseOPProcResultInterval time.Duration
}

ProcHostInstConfig refresh process host instance number need config

Jump to

Keyboard shortcuts

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